javascript regex (regular expression)

Randy Geily

I need to validate phone numbers. it must have a "+" sign followed by [0-9].

I need something like /^ + . [0-9]*$/

I don't know how to implement the "+" sign and how to have it validate only once. Concerning the length It does not matter for my purpose.

Kyo

See the line below:

str.match(/^\+[0-9]+$/)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related