perlquestion
hackermike
I have this regex in my simple perl script handling a html form:
<code>
unless ($FORM{'phone'} =~ /\s*\(*\)*\.*\d+\-*\s*/) {
</code>...
the point of which is to disallow text in the field whilst allowing for various punctuation styles.
Hoping to avoid re-inventing the whole system, I'd like to be able to allow certain text, i.e. ext. or Ext.
Any ideas?
thx
mike