I want to match link with regex until first space or <
occur.
I tried this regex
\b(((http|ftp)(.)?\:\/\/)?(www\.)?example\.com([^\s|<]+)?)\b
But the problem with this regex is that it is also matching example.com.au
.
So what i want to match
example.com // match
example.com/somelink/link // match
example.com.au // do not match
example.com.au/somelink/link // do not match
match till first space or <
occur