• 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
How to use "do shell script" to search for RegExps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use "do shell script" to search for RegExps


  • Subject: How to use "do shell script" to search for RegExps
  • From: "Rebecca O'Connell" <email@hidden>
  • Date: Wed, 21 Apr 2004 16:56:45 -0400

I have read a number of thread where someone suggests using "do shell
script" and perl to do a string search. Could someone post an example of the
syntax one would use to do this? For example if wanted to do something
equivalent to

if myVar contains \(a|A)\ then set hasA to true

using a shell script how would I go about it?

Thank you,
Rebecca
_______________________________________________
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: How to use "do shell script" to search for RegExps
      • From: John Cochrane <email@hidden>
    • Re: How to use "do shell script" to search for RegExps
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: AppleScript calling Python function
  • Next by Date: Re: AppleScript mystery
  • Previous by thread: Crop with Acrobat 5
  • Next by thread: Re: How to use "do shell script" to search for RegExps
  • Index(es):
    • Date
    • Thread