RE: A Better Regex
RE: A Better Regex
- Subject: RE: A Better Regex
- From: Rick Gordon <email@hidden>
- Date: Sun, 19 Aug 2007 18:25:52 -0700
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