I am so confused about the regex methods. My requirement is to validate a phone number that may contains + symbol in its prefix. Then all the charactors should be numerals only. For this, how can i create a regular expression in objective c.
Share
I wouldn’t say this is a definitive answer but it should give you a start.
Will match any string that starts with a ‘+’ and then any amount of numbers greater than 0.
For instance:
If there are further constraints on length etc then specifiy and I can update the regex. I agree with other poster about using RegexKitLite.