regex
| From: | Michael Hall | Date: | Fri, 29 Sep 2000 07:45:22 +0000 |
| Subject: | regex | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-18012@lists.php.net to get a copy of this message | ||
Hi:
Anyone know of a quick and simple regex formula that will find *any*
instance of a given set of characters anywhere in a string? I'm not too
flash with regex, and tried something like the following:
ereg("[\/\\\%\&\*\|\!\<\>]", $string);
This appeared to work sometimes, not others, and less as the set of
characters to search for got longer. I simply want to block outright certain
undesirable characters ...
Thanks
Michael Hall