[thelist] PHP regex double quotes problem

Sales @ Lycosa sales at lycosa.co.uk
Thu Oct 5 16:56:33 CDT 2006

I'm trying to allow user input of double quotes with regular expressions in
php. magic_quotes_pgc is on.

Straightforward form input regex:

^[a-zA-Z0-9!£$%^&*()_=+:;@\'/~#<>,.? -\"]+$

I tried running a test on
http://programmabilities.com/php/regular-expression-tester.php which returns
valid for:

foo " bar

I also tried to no avail:
^[a-zA-Z0-9!£$%^&*()_=+:;@\\\'/~#<>,.? -\\\"]+$

What am I doing wrong?

Please help, thanks.

[I feel like the waiter bringing in the New Year over and over at Itchy &
Scratchy land]

More information about the thelist mailing list