Tag Regex considered useful AND evil

Regex to find URLs in Web Pages

This is a really difficult thing to do, but I’m surprised that the top few links I found googling for solutions weren’t better. In fact they sucked. Here’s what I whipped up in a few minutes: ((href|src)\=(\”[^\”]*\”|\'[^\’]*\’|[^\s\<\>\^]*\s)) Now, the codeā€¦