![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Allow empty form fields regexby Hissingsid (Sexton) |
on Mar 18, 2004 at 15:36 UTC ( #337704=perlquestion: print w/replies, xml ) | Need Help?? |
Hissingsid has asked for the wisdom of the Perl Monks concerning the following question: Hi,
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 thanksSid 20040318 Edit by Corion: Added code tags
Back to
Seekers of Perl Wisdom
|
|