• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Satimage: non-greedy regexp matching?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Satimage: non-greedy regexp matching?
      • From: Wim Melis <email@hidden>
  • Prev by Date: Problematic AppleScript Advice needed!
  • Next by Date: Re: Problem Compiling
  • Previous by thread: Re: Satimage: non-greedy regexp matching?
  • Next by thread: Re: Satimage: non-greedy regexp matching?
  • Index(es):
    • Date
    • Thread