It would be great if someone could help me with a Regex for phone numbers. Following are the conditions:
- If + is present, then it should be the first character
- Allowed characters are numbers ( ) space - and .
- Minimum of 6 numbers and max 12
- ( , ) and space can come anywhere in the string
- - shouldn't be the first and last character and shouldn't appear immediately after +, if + is present.
Here are some valid numbers:
- +93483227359
- +1 703 335 65123
- 34565464
- 001 (703) 332-6261
- +1703.338.6512
- +934-83227359
- (111)123-4567
- 111-123-4567
Thanks in advance