Re: SatImage regexp problem
Re: SatImage regexp problem
- Subject: Re: SatImage regexp problem
- From: email@hidden
- Date: Sat, 11 Oct 2008 17:55:23 +0200
At 2:09 PM +0200 10/11/08, Brennan wrote:
set searchTerm to "href=[\"'][^ ]* "
find text searchTerm in txt with all occurrences without case sensitive
Two things, both of them may be simple typos, but once fixed it will work:
1. don't forget to say "with regexp" (and "string result", but that's optional)
2. you've left a space in searchTerm, while there is no space in the
original text, so the regexp won't match!
set txt to return & "<a
href='http://www.vegetables.com/2008/09/rhubarb.jpg'>rhubarb</a>"
set searchTerm to "href=[\"'][^ ]*"
find text searchTerm in txt with string result, all occurrences and
regexp without case sensitive
--> {"href='http://www.vegetables.com/2008/09/rhubarb.jpg'>rhubarb</a>"}
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden