Re: Satimage: non-greedy regexp matching?
Re: Satimage: non-greedy regexp matching?
- Subject: Re: Satimage: non-greedy regexp matching?
- From: Wim Melis <email@hidden>
- Date: Tue, 21 Dec 2004 13:23:43 +0100
Hi Emmanuel, Tim:
>> does the Satimage addition only support greedy matches?
> Both. Satimage addition only supports greedy matches, and this is
> possible if you use XML commands.
Learning a new technique for one little problem would be too much overkill
I'm afraid... my knowledge of XML is zero. Plus, the script needs to be run
from within Filemaker in the end, it sounds like that's not possible.
I tried to create a 'do shell' solution, but couldn't wrap my head around
that either, so in the end I wrote a less elegent solution using the
matchpos/matchlen results to access the proper bits.
> You could try changing your search to:
> find text "<a +href[ =]+[^<]+</a>" in theHTML with regexp, string
> result and all occurrences
> ... so long as there were no unencoded "<" in the link.
Alas, the 'link' part is often an '<img..', so this won't work.
--
email (home): email@hidden
email (office): email@hidden
http://www.noorderlicht.com * Noorderlicht photofestival
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden