[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] help with filtering chars using reg exp in PHP



preg_replace("/[^a-z0-9]/","",$foo)
http://php.net/manual/en/function.preg-replace.php
http://www.perldoc.com/perl5.6/pod/perlre.html

Cheers,
Marcel

sib <sibuyas@i-mailbox.net> 7 Jan 2002, at 18:14:

> hello all,
> 
> for the life of me i cant figure out the reg exp PHP manual,
> can someone please help me with ereg_replace() or
> preg_replace() in PHP. i have a string wherein i want to
> replace all occurences of characters outside of "a-z0-9"
> with nothing.
> 
> 
> tia,
> sib
> 
> --------------------------------------------------------- A
> world of Information. The journey begins here. At Home.
> Internet Cebu's web based mail. http://www.i-mailbox.net
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 




Reply to: