I am using regular expression. In phone validation, i have to use the “+” sign in that. How to provide the + sign in regular expression. Because + sign indicates one or more of preceding character(s). Whether i will provide like this \+ ?
I am using regular expression. In phone validation, i have to use the +
Share
You need to escape it with a preceding
\like:This example does only match strings that start with a
+that is followed by one or more digits.