• 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: 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

References: 
 >Re: A Better Regex (From: T&B <email@hidden>)
 >Fwd: A Better Regex (From: T&B <email@hidden>)

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