Search

just show me the code

Wednesday, April 1, 2009

sweet regular expression tester site

I finally found a sweet regular expression tester. http://regexpal.com/

here is my test for phone number validation which will allow user to enter (xxx)xxx-xxxx or xxx-xxx-xxxx or xxxxxxxxxx

^((((\(\d{3}\)?)|(\d{3}-))?\d{3}-\d{4})|(\d{10}))

234-432-2342
(324)432-0909
(324)6we-0909
(324)63a-0909
234-432-2342
(234)324-5444
3424324234
234-432-2342
2311212321
asdf323243
1231321
1564344445

thanks regexpal

No comments:

Post a Comment

Contributors