There is a big javascript string that contains text, html tags etc and it is a valid html (tags are closed properly everywhere). There are URLs in this string.
What's the fastest way to remove everything from this sring, but leave those URLs that contain http://google.com
if any URL in this string is limited by ""
or ><
tags?
In the updated string the URLs can be separated by space.
This is a practical task. If no solution is provided here, I will share mine, but I don't think it will be nice and fast.