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 <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] >