I'm trying to do a search and replace across a lot of files and I need to format the following HTML.
<a href="http://www.XXXXXXXXX.com target=_blank">
<img alt="XXXXXXXXX" src=http://domain.org/files/image.gif" />
</a>
I need regex for the XXXXXXX parts. Basically find all combinations of the domains used and all combinations of the alt words used.
Some domains have 1 -
(dash) and others have 2 -
(dashes) in them while the rest do not. Some alt images are 2 words while others are 3. There are no numbers in the domain or alt tags.
Any help would be greatly appreciated.