Re: Repeating search with GREP
Re: Repeating search with GREP
- Subject: Re: Repeating search with GREP
- From: Emmanuel <email@hidden>
- Date: Fri, 28 Mar 2003 09:48:04 +0100
At 12:15 PM -0800 27/03/03, Blaine Wilson wrote:
I'm stuck. (As an AS newbie that happens a lot...)
I'm trying to extract email addresses from a huge text document.
I've found a grep pattern that works quite well, but I just don't know how
to repeat the search.
Maybe the easy way would be to use "find text" from the Satimage
osax. You would load the text into some "theText" variable, and then
you would say:
------------------------------------
find text "([a-z etc." in theText with regexp, whole word and all occurrences
------------------------------------
This returns a list of records that contain the location information
about the matches. If all you want is the matching strings, write:
------------------------------------
find text "([a-z etc." in theText with regexp, whole word, all
occurrences and string result
------------------------------------
Emmanuel
_______________________________________________
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.