I was investigating how to match the url htttp://some.random.url
except if it’s part of a markdown link:
[what an awesome site](htttp://some.random.url)
As a first approximation, I wanted to prefix the convoluted regex I use with:
(?<!\]\()
as in: match the url EXCEPT if it’s prefixed by ‘](`
which I thought would be good enough for my use case (expanding the scope of this action by excluding already well formed links