Re: A Better Regex
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