G
gilles27
Hi all,
I need a regular expression that will force users to enter 10 or 11
digits, but also allow any amount of spaces anywhere. At the moment
I've got
^[0-9]{10,11}$
which enforces 10 or 11 digits. However as soon as a space is
encountered anywhere, valid input is rejected. Is there any way,
within Regex syntax, to say "ignore spaces"? Examples of input that
should pass are
333 4444 4444
333 333 4444
4444 333 4444
4444 333 333
666666 55555
55555 666666
666666 4444
Any help would be appreciated.
Regards,
Ross
I need a regular expression that will force users to enter 10 or 11
digits, but also allow any amount of spaces anywhere. At the moment
I've got
^[0-9]{10,11}$
which enforces 10 or 11 digits. However as soon as a space is
encountered anywhere, valid input is rejected. Is there any way,
within Regex syntax, to say "ignore spaces"? Examples of input that
should pass are
333 4444 4444
333 333 4444
4444 333 4444
4444 333 333
666666 55555
55555 666666
666666 4444
Any help would be appreciated.
Regards,
Ross