Validating Form fields with Reg Ex

7 years 4 weeks ago #179795 by strawberry
Hi
I have been trying to put a Reg Expression for a Telephone No. field into CB 1.7 Field Element, (special PERL Expressions ) but it does not work.
Tried various versions, but as simple as this one, w/o success. It still allows alpha letters. Would I have to make a change in the PHP files?
^[0-9]{4,20}$
Any ideas? Greatly appreciated.
Moderators: beatnantkrileon
Time to create page: 0.380 seconds
Facebook Twitter Google LinkedIn