I have a regex to check phone numbers in a text. Please check below.
(\d[\s-]?)?[\(\[\s-]{0,2}?\d{3}[\)\]\s-]{0,2}?\d{3}[\s-]?\d{4}
This regex works fine but it does not work well if I write it this way.
- Ex 1: 088 11 22 458
- Ex 2: +1 88 11 22 458
How can I modify the regex to fix this bug?