in reply to Allow empty form fields regex
How about this
Also != should probably be !~.if ((length($contents) > 0) && ($contents !~ /^[\w \.\,\=\" \/<>]+$/)) +{ $contentserror = "Error - message.";++$error; }
- Tom
|
---|
In Section
Seekers of Perl Wisdom