• 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: Help with find text command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with find text command


  • Subject: Re: Help with find text command
  • From: has <email@hidden>
  • Date: Wed, 1 Aug 2007 22:07:34 +0100

Wallace, William wrote:

I will need the offset as well as the matched string. Satimage
returns a record with the offset, the length, and the matched string:

In that case you'll need to use a combination of regexp and non- regexp matching as-per your original description.



However, I think "[[:digit:]X-]{13}" should produce what is needed in
the Satimage call.

Bear in mind that that will match patterns of 13 *or more* characters. To match exactly 13 characters, you'll want to match for (e.g.) word boundaries as well (\< and \> in Satimage.osax). See my earlier post for an example.


HTH

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

_______________________________________________
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
  • Prev by Date: Re: Help with find text command
  • Next by Date: Re: Help with find text command
  • Previous by thread: Re: Help with find text command
  • Next by thread: Re: Help with find text command
  • Index(es):
    • Date
    • Thread