Wednesday, January 12, 2011

USA Phone Number For Regular Expression Validation





^\(([\(]?([2-9]\d{2})[\)])?([1-9]\d{2})[-]?((\-)\d{4})$

Match: r Phone Number format:   Eg . (530)555-1212

UnMatch : (530) 555-1212, 530 555-1212 etc......

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Wallpapers collections