EREGI_REPLACE? HELP!!!

From: Date: Thu, 20 Jan 2005 17:19:10 +0000
Subject: EREGI_REPLACE? HELP!!!
Groups: php.general 
Request: Send a blank email to php-general+get-206851@lists.php.net to get a copy of this message
I'm trying to take a string and remove all "invalid characters" from it. $string="Frid#ays are@ re$ally G{}[]RE~AT. F*rid<>ay at 5 is be^tt&er."; The only characters that should be allowed are A-Z, a-z, 0-9, .(period), -(dash), ;(semi-colon), and :(colon). All other characters should be removed. After "cleaning" the string, the output should be: "Fridays are really GREAT. Friday at 5 is better." Any ideas? Your help is appreciated.

« previous php.general (#206851) next »