View Single Post
Old 06-08-2008, 10:16 AM   #4 (permalink)
marxx
The Contributor
 
marxx's Avatar
 
Join Date: Sep 2007
Location: Finland
Posts: 45
Thanks: 3
marxx is on a distinguished road
Default

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.
Send a message via MSN to marxx
marxx is offline  
Reply With Quote