I am a noob at expressions but that works here when I was testing.
I can try to explain, but I am not native english speaker and I may embarrass trying.
If your input strings will always be in this format, the regex expression provided above (i.e. (?<=.com ).*) shall work just fine.
IF the position of the phone numbers can change in the input string, the above regex WON’T work.
In that case, you first need to figure out all possible phone-number patterns, For the ones mentioned above, here’s the regex (which does seem complex, but it’ll do the job):
I want to get result as (404) 851-1331 ext. 1520 like this by using regular expression only.
Can anyone provide me exact regular expression for the same.