• 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: A Better Regex
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A Better Regex


  • Subject: Re: A Better Regex
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 19 Aug 2007 21:52:47 -0400

Right.  It has [:space:], just not the \s shortcut.  But unlike
Satimage, Smile is not free, right?


On 8/19/07, Rick Gordon <email@hidden> wrote:
> Smile's ufind and uchange do support lazy vs. greedy matching and lookarounds (though like most implementations, lookbehinds require fixed-character-length strings). And the [:space:] metacharacter maps to space, tab, CR, LF, or FF.
>
> Rick Gordon
>
> ------------------
>
> On 8/20/07 at 9:32 AM +1000, T&B wrote in a message entitled
> "Fwd: A Better Regex":
>
> >Hmmm so it seems that the Satimage OSAX doesn't do full PCRE regexp (eg greedy matching and escape character for whitespace). So the best AppleScript RegExp solution I have is my GetRegexMatches subroutine below. Questions:
> >
> >1. Can any perl scripters out there optimize my routine, such as performing the ReplaceText operations inside perl? Obviously we still want to be able to call it from AppleScript.
> >
> >2. Is there a better/faster way to perform RegExp from AppleScript that supports the full PCRE spec?
> >
> >Thanks,
> >Tom
>
> --
>
> ___________________________________________________
>
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___________________________________________________
>
> WWW:   http://www.shelterpub.com
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>


--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: A Better Regex
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: A Better Regex (From: T&B <email@hidden>)
 >Fwd: A Better Regex (From: T&B <email@hidden>)

  • Prev by Date: RE: A Better Regex
  • Next by Date: Re: A Better Regex
  • Previous by thread: RE: A Better Regex
  • Next by thread: Re: A Better Regex
  • Index(es):
    • Date
    • Thread