I searched but couldnt find something like this regexp. This regexp has to catch every url like “http://domain.com/blabla”, “domain.com/blabla”, “domain.com”, “www.domain.com” … As the same as Twitter. But it shouldn’t catch a special domain. “togl.me”, “user.togl.me”… Main domain with subdomains shouldn’t be catched.
I’m sorry for my English. Thanks,
The following pattern matches your criteria:
It’s based on the pattern you provided.
togl.meis excluded using a negated look-ahead: