http://qs321.pair.com?node_id=337717


in reply to Allow empty form fields regex

How about this
if ((length($contents) > 0) && ($contents !~ /^[\w \.\,\=\" \/<>]+$/)) +{ $contentserror = "Error - message.";++$error; }
Also != should probably be !~.

- Tom