-
Apr 16th, 2012, 01:31 AM
#1
Thread Starter
Frenzied Member
Regular expressions javascript
I am validating a web page via a javascript function using regular expressions. Here is my variable:
var RE_phone = /^[\d\+]{3,4}([\- ]?)\d{1,3}([\- ]?)\d{3}([\- ]?)\d{4}$/;
I am needing it to validate both national and international numbers. So far it is working correctly, except for national numbers.
Here is an example of a national number that I would like to be able to accept as a valid number: 04 4784897 or 044784897.
Can I please have some help to modify my regular expression variable to accept national phone numbers in the above format?
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|