I\'m using this pattern to check the validation of a phone number
^[0-9\\-\\+]{9,15}$
It\'s works for 0771234567 and +0
0771234567
+0
This regex matches any number with the common format 1-(999)-999-9999 and anything in between. Also, the regex will allow braces or no braces and separations with period, space or dash. "^([01][- .])?(\(\d{3}\)|\d{3})[- .]?\d{3}[- .]\d{4}$"
"^([01][- .])?(\(\d{3}\)|\d{3})[- .]?\d{3}[- .]\d{4}$"