I have a very loose regex to match any kind of url inside a string: [a-z]+[:.].*?(?=\s|$)
The only problem is that this regex will also match the domain of an email, when instead i want to exclude from the match any email address.
To be precise i do want the following match (matched string in bold)
test example.com test
test [email protected]
Any solution i tried just excludes emailstring
and matches myemail.com
Here's a more complete test case https://regex101.com/r/NsxzCM/3/