Not able to figured it out what's wrong with my regex. I'm trying to find following pattern from my string with the use of regex.
1231231234
123.123.1234
123-123-1234
123 123 1234
Here is my regex pattern:
\b((\d{3}[ .-]?){2}(\d{4}))\b
It detect incorrect result and the output i get it with the regex is like below. My aim is to not detect the highlighted once.
What i tried so far but that is also not worked for me.
Anyone has idea how can i get this out?