• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OS X and RegEx Commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: OS X and RegEx Commands
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Trap Kryboard
  • Next by Date: It happened again.
  • Previous by thread: Re: Trap Kryboard
  • Next by thread: Re: OS X and RegEx Commands
  • Index(es):
    • Date
    • Thread