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

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
References: 
 >SatImage regexp problem (From: Brennan <email@hidden>)

  • Prev by Date: Re: SatImage regexp problem
  • Next by Date: Re: Detecting Applescript and SKYPE
  • Previous by thread: SatImage regexp problem
  • Next by thread: Re: SatImage regexp problem
  • Index(es):
    • Date
    • Thread