Re: Satimage: non-greedy regexp matching?
Re: Satimage: non-greedy regexp matching?
- Subject: Re: Satimage: non-greedy regexp matching?
- From: Tim Mansour <email@hidden>
- Date: Tue, 21 Dec 2004 19:44:35 +1100
Hi Wim,
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.
Unfortunately the match is always 'greedy', ie:
set theHTML to
"<a href=\"file1.html\">link1</a> test <a
href=\"file2.html\">link2</a>"
set x to find text "<a href=.*</a>" in theHTML with regexp, string
result and all occurrences
--
Tim Mansour <email@hidden>
_______________________________________________
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