Re: OS X and RegEx Commands
Re: OS X and RegEx Commands
- Subject: Re: OS X and RegEx Commands
- From: Christian Vinaa <email@hidden>
- Date: Mon, 1 Dec 2003 16:02:06 +0100
The Satimage osax, distributed separately or with the Smile script editor,
has a very advanced RegEx implementation. Then there's the true original:
'grep' via 'do shell script' command in Standard Additions, which all Macs
come with built in.
what I basically need to do
(and mind you that I made the scripts some years ago and since then
been too busy to dabble with applescript - sadly though - so i'm a
bit rusty)
is this; (getting specific info from an email:)
set textTofind1 to "realname"
set textTofind2 to "email"
set myEmailtext1 to (REMatchLines bodyText pattern textTofind1)
set myEmailtext2 to (REMatchLines bodyText pattern textTofind2)
where the *REMatchLines* and *pattern* are RegEx 'stuff'
so; how do I do that ?
--
Christian Vinaa
email@hidden
...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
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.