Re: Regex -- TextCommands vs. Satimage
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