Re: How to use "do shell script" to search for RegExps
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.