Satimage Regex
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