Hello All,
I want JavaScript regular expression which allow (+) sign once at start as well as whole length of string should not be more than 15 numeric character ie 0 to 9.
Try this:
/^\\+\\d{0,14}$/
- if yours string overall length should be maximum of 15 characters long /^\\+\\d{0,15}$/
- if you want '+' and no more than 15 0-9 characters
You can also experiment on http://regexr.com/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.