Hi,
I need to make a regular expression that allows the following:
+27 (041) 5839999 or 27 041 5839999
Basically, an optional +, followed by any number of digits, followed by a space, optional bracket, any number of digits, optional bracket, space, any number of digits.
Also need one for:
+27 (083|082)5081744
Or, optional plus, then a space, then a 10 digit number starting with 082 or 083.
This is for a legal South African phone number.
I AM learning Regexs but I need this one ASAP, but rest assured I wont post every time i need one. When i know whats going on Ill be answering some posts hopefully!
Any help is much appreciated.
I need to make a regular expression that allows the following:
+27 (041) 5839999 or 27 041 5839999
Basically, an optional +, followed by any number of digits, followed by a space, optional bracket, any number of digits, optional bracket, space, any number of digits.
Also need one for:
+27 (083|082)5081744
Or, optional plus, then a space, then a 10 digit number starting with 082 or 083.
This is for a legal South African phone number.
I AM learning Regexs but I need this one ASAP, but rest assured I wont post every time i need one. When i know whats going on Ill be answering some posts hopefully!
Any help is much appreciated.