A string contain many urls, how to get urls start not with
A string contain many urls: http://stackoverflow.com/1 [url]http://stackoverflow.com/2[/url] http://stackoverflow.com/3 [url]http://stackoverflow.com/4[/url], how to get match urls?
This will grab the all the URLs not enclosed in the tags you mentioned (
[\url]). Note that this works for every URL, not just the one you listed (i.e
http://stackoverflow.com), which I think is what you want. You can see the explanations and live demo for each rule on Regex101 - Link: https://regex101.com/r/wN9aX0/3