Re: Another RegEx Question
| From: | Ashley Sheridan | Date: | Mon, 07 Jun 2010 16:15:41 +0000 |
| Subject: | Re: Another RegEx Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305886@lists.php.net to get a copy of this message | ||
On Mon, 2010-06-07 at 12:11 -0400, Floyd Resler wrote:
> I need to test for the existence of at least one punctuation (@#$%') character in a
> string. What would my regular expression be?
>
> Thanks!
> Floyd
>
>
/[@#\$%\']/
That will match against at least one of those characters you specified.
Thanks,
Ash
http://www.ashleysheridan.co.uk