• 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: Regex -- TextCommands vs. Satimage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regex -- TextCommands vs. Satimage


  • Subject: Re: Regex -- TextCommands vs. Satimage
  • From: Emmanuel <email@hidden>
  • Date: Mon, 21 Nov 2005 23:03:58 +0100

At 9:17 PM +0000 11/21/05, has wrote:

>I understand that has's TextCommands can do "lazy" regex searches, whereas Satimage can not. [...] I suspect that Satimage made a design decision NOT to support lazy searches in favor of speed.

John, you may want to know that the next version of Smile will bring to you non-greedy searches. More precisely, you can now select one of the following syntaxes:
POSIX, POSIX_EXTENDED, EMACS, GREP, GNU_REGEX, JAVA, PERL, RUBY


The next version of Smile is already available to the happy SUL subscribers.

About speed, the real issue is usually not, how much time a hit takes. In general, regular expressions really spend time when there is no hit. When there is no hit, as you can imagine, greedy and lazy are mostly at par. When there is a hit, I would say that lazy is often faster, since it does not need to back-search once it found a first hit.

Emmanuel
_______________________________________________
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


References: 
 >Re: Regex -- TextCommands vs. Satimage (From: has <email@hidden>)

  • Prev by Date: Re: Using "character" in TeX-Edit
  • Next by Date: [ann] TextCommands 1.0.0
  • Previous by thread: Re: Regex -- TextCommands vs. Satimage
  • Next by thread: [ann] TextCommands 1.0.0
  • Index(es):
    • Date
    • Thread