On 31/10/2007, Steve Finkelstein sf@stevefink.net wrote:
Rudimentary editing inquiry here. I need to be able to append alt="foo" to about 30 <img> tags on my HTML document which resembles the following:
<img width="30" height="30" src="<?= base_url()
?>/media/img/patientedit.png">
Is there a quick way to do this in TextMate?
Do a search and replace. Search for the regular expression
<(img([^">]|"[^"]*")*)>
and replace with
<$1 alt="foo">
Does that do what you wanted?
Robin