Regex in OS X
Regex in OS X
- Subject: Regex in OS X
- From: Hanaan Rosenthal <email@hidden>
- Date: Fri, 6 Feb 2004 15:59:57 -0500
Hi,
I'm having to deal with searching through text containing thousands of
lines for matches.
The text is tab delimited, where one field contains the wrong word and
the second contains the right word. I'm using it as the dictionary for
search and replace.
The text looks like that:
"GM General Motors
Macdonalds McDonalds
MicroSoft Microsoft
etc..."
I know Satimage has some regular expressions to handle such a thing.
Would anyone (Emmanuel) have some code that will return the line that
contains a match at the start of the line. Example:
Search string: "Macdonalds"
Result is the line:
"Macdonalds McDonalds"
Since it starts with the search string.
Thanks in advance to anyone making an attempt to get me an answer.
Hanaan
--
Hanaan Rosenthal * Custom Flow Solutions
MEDIA AUTOMATION CONSULTING
401-487-2957 * email@hidden
* www.customflowsolutions.com *
be successful... ...work less.
_______________________________________________
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.