• 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
Satimage Regex
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Satimage Regex


  • Subject: Satimage Regex
  • From: Michael Ghilissen <email@hidden>
  • Date: Sun, 20 Nov 2005 16:32:54 -0500

Hi,

I can't resolve this. I need to extract the text between ">Cover<" and the first "<br><br>" in a text string that contains several "<br><br>". 

Since regex is 'greedy', I obtain the whole sequence between >Cover< and the last <br><br>, i.e. {"efgh<br><br>ijkl<br><br>mnop"}.

Please help me!

Thanks much,

Michael

---

set theText to "abcd >Cover< efgh <br><br> ijkl <br><br> mnop <br><br>" 

set theResult to find text ">Cover<(.*)<br><br>" in theText using "\\1" regexpflag {"EXTENDED"} with regexp, all occurrences and string result



 _______________________________________________
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

  • Prev by Date: Re: Safari source code
  • Next by Date: Re: creating events in published calendars in iCal?
  • Previous by thread: Re: creating events in published calendars in iCal?
  • Next by thread: Re: Satimage Regex
  • Index(es):
    • Date
    • Thread