|Perl: the Markov chain saw|
Allow empty form fields regexby Hissingsid (Sexton)
|on Mar 18, 2004 at 15:36 UTC||Need Help??|
Hissingsid has asked for the
wisdom of the Perl Monks concerning the following question:
My question is: Can you please give me an example of how I can allow the field to be empty but only validate against the regex above if it has any characters in it.
I guess I could hack it by saying this first
and then put it through the regex but that is a real mess.
Any ideas, I've done a few searches but can't find anything to help me out there.Many thanks
20040318 Edit by Corion: Added code tags