[TxMt] Re: Search & replace regex question
Hans-Jörg Bibiko
bibiko at eva.mpg.de
Mon Sep 8 06:22:41 UTC 2008
On 08.09.2008, at 00:26, Thomas Aylott wrote:
> On Sep 4, 2008, at 3:30 AM, Hans-Jörg Bibiko wrote:
>> Stop. I've just tried out the regexp with TM and IT ALREADY WORKS ;-O
>
> OK. You have my attention.
> Does this mean we'll be able to get the holy grail of full html
> balanced tag selection with just a regular expression?
Well, in principal yes, but one has to try to fine-tune the regexp.
The mentioned regexp does match all tags like <a>..</a> but not <img>
or <img />. If you have such a tag in the doc the regexp engine runs
in a loop. I do not know if we need a tiny script around the regexp
but at least it would simplify the script for matching balanced tags.
This week I'll have no time.
--Hans
More information about the textmate
mailing list