[TxMt] Editing text inquiry
Robin Houston
robin.houston at gmail.com
Wed Oct 31 17:22:37 UTC 2007
On 31/10/2007, Steve Finkelstein <sf at 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
More information about the textmate
mailing list