E
Eric
Hi,
I want to write a regexp that matches either a blank value or a pattern. I'm
checking user data for a 'telephone' field which I want to allow to be blank
OR have at least 11 digits.
I've tried
if ($data =~ m/{0}|\d{11,}/) { etc etc
But it doesn't work
OK I know I can do it with some code, but my system reads regexps from a
config file and I'd like to keep my system versatile.
Cheers,
Eric
passme
I want to write a regexp that matches either a blank value or a pattern. I'm
checking user data for a 'telephone' field which I want to allow to be blank
OR have at least 11 digits.
I've tried
if ($data =~ m/{0}|\d{11,}/) { etc etc
But it doesn't work
OK I know I can do it with some code, but my system reads regexps from a
config file and I'd like to keep my system versatile.
Cheers,
Eric
passme