I'm parsing an xml rss feed from a couple of different sources and I want to find the images in the html.
I did some research and I found a regex that I think might work
/<img[^>]+src="?([^"\s]+)"?\s*\/>/g
but I have trouble using it in go. It gives me errors because I don't know how to make it search with that expression.
I tried using it as a string, it doesn't escape properly with single or with double quotes. I tried using it just like that, bare, and it gives me an error.
Any ideas?