[thelist] [regexp] I'm lost

Paul Cowan evolt at funkwit.com
Thu Jul 17 21:32:06 CDT 2003

Paul Bennett wrote:
> am I even close? (Results attest otherwise)

Something like this should work:
	^[_a-zA-Z0-9 ()\-]+$
You may or may not need to escape the parentheses -- replace () with
\(\) -- depending on the regexp engine that PHP uses.

Hope this helps,


More information about the thelist mailing list