RE: Extract words.
RE: Extract words.
- Subject: RE: Extract words.
- From: "Ruby Madraswala" <email@hidden>
- Date: Tue, 12 Oct 2004 10:10:31 -0400
- Thread-topic: Extract words.
-----Original Message-----
At 10:27 -0400 10/08/2004, Ruby Madraswala wrought:
>Just needs some guidance to write a script to extract all words between
>"\" and "|" from a text file.
>
>Example:
>\According| to knowledge base papers, they will \work| if you bugger
>around with the parts a little and open them \manually|.
>
>According
>Work
>Manually
______________________________________________________________________
Hello Ruby,
I'd use the Satimage osax and regular expressions:
http://www.satimage.fr/software/en/downloads_osaxen.html
set txt to "\\According| to knowledge base papers, they will \\work| if
you bugger around with the parts a little and open them \\manually|."
try
set findWords to find text "\\\\([^|]+)\\|" in txt using "\\1" with
regexp, all occurrences and string result without case sensitive
on error
set findWords to false
end try
Best Regards,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden