Re: Any Ideas

From: Date: Mon, 28 Jan 2002 21:44:17 +0000
Subject: Re: Any Ideas
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82470@lists.php.net to get a copy of this message
$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/ info@philipsdomain.com Phone: +64 25 6144012


« previous php.general (#82470) next »