06-08-2008, 10:16 AM
|
#4 (permalink)
|
|
The Contributor
Join Date: Sep 2007
Location: Finland
Posts: 45
Thanks: 3
|
Thanks for answering!
@Salathe
Those functions were new to me and thanks for pointing them. Unfortunately your example didn't work in my case.
ie. If I want to user to do phone number and nothing else.
Code:
+358-50-1112233 = passed
050-1112233 = passed
0501112233 = passed
aa0501112233 = failed as it should
05011122aa33 = should failed but script passed it.
So that didn't work.
Otherhand, delayedinsanity your example is what I was looking for!! =)
Code:
If there is something else that 1234567890+- then fail!!
Thanks guys!
btw. Does someone know is there some simple instructions how to use those patterns?
Thanks.
|
|
|