• 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: How to use "do shell script" to search for RegExps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use "do shell script" to search for RegExps


  • Subject: Re: How to use "do shell script" to search for RegExps
  • From: Emmanuel <email@hidden>
  • Date: Fri, 23 Apr 2004 19:13:41 +0200

At 11:54 AM -0400 23/04/04, Rebecca O'Connell wrote:
>And up until 2 minutes ago, I didn't realize that you could use find text to
>do a substring find and replace (i.e. set myVar to matchResult of (find text
>"([A-z]*), ([A-z]*)" in "Last, First" using "\\2 \\1" with regexp) to get
>"First Last"), so I wanted to be able to do that.

(instead of using "matchResult", it's sometimes more handy to say "with regexp and string result")

You may want to know that Satimage.osax also offers "change", which helps much in some circumstances.

>(By the
>way, if someone were to produce a sheet that detail which regexp expressions
>are in use and maybe had a few examples, and were to post it, say, on the
>Satimage website, that would be really helpful. Just a thought.)

Is that a thought that you had *after* reading the documentation for the Satimage osax?

The documentation is included in the download, it's also available separately at:
<http://www.satimage-software.com/en/downloads_documentation.html>

Emmanuel

PS
Just in case, be aware that [A-z] will match, not only the 52 letters, but also:
[, \, ], ^, _ and `. What you want may be [[:alpha:]]. Or simply [^ ,] (anything except coma and space).
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: How to use "do shell script" to search for RegExps (From: "Rebecca O'Connell" <email@hidden>)

  • Prev by Date: Re: View run-only scripts?
  • Next by Date: Re: Font Size
  • Previous by thread: Re: How to use "do shell script" to search for RegExps
  • Next by thread: Apple Script List
  • Index(es):
    • Date
    • Thread