$str = ereg_replace('[-!@#$%^&*()_+=-\';:"/.,<>?]', '', $str);

You may need to escape some of these characters with \

On the other hand, they are contained in a character class [] so you may 
not need to escape them.  Note how the `-' is in the beginning.

-Jason Garber
IonZoft.com


At 09:13 AM 1/27/2002 +1300, Philip J. Newman wrote:
>Any Ideas how I can remove   !@#$%^&*()_+=-';:"/.,<>? charactors from a 
>string?
>
>Philip J. Newman
>Philip's Domain - Internet Project.
>http://www.philipsdomain.com/
>[EMAIL PROTECTED]
>Phone: +64 25 6144012


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to