• 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: Pseudo-regexp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pseudo-regexp


  • Subject: Re: Pseudo-regexp
  • From: has <email@hidden>
  • Date: Tue, 1 Mar 2005 17:14:16 +0000

Elliotte Harold wrote:

is there an easy way to call out to Perl or some such to do this work?

AppleMods' RE library provides a convenient wrapper around Perl's regex:

http://applemods.sourceforge.net/mods/Data/RE.php

One limitation to be aware of: it currently echoes input text on the command line, which means there's a size limit on the amount of text it can take. (The 'do shell script' command _desperately_ needs a 'stdin' parameter for passing in data directly.) It shouldn't be a big job to extend the implementation so that larger amounts of text are transferred by file (there's a support library, Oyster, already written for this purpose); I'm sure I can supply some pointers if someone wants to write a patch and submit it to AM.


And if that's not the case, what's the best cheap regex library for AppleScript? SatImage?

I'm not sure if Satimage regex are Unicode-savvy yet? Emmanuel?

has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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


  • Follow-Ups:
    • Re: Pseudo-regexp
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: About integers
  • Next by Date: Re: Pseudo-regexp
  • Previous by thread: Re: Pseudo-regexp
  • Next by thread: Re: Pseudo-regexp
  • Index(es):
    • Date
    • Thread