At 12:55 PM -0400 9/3/04, Chip Salzenberg wrote:
According to Dan Sugalski:
 At 2:44 PM +0000 9/3/04, Chip Salzenberg wrote:
 >According to [EMAIL PROTECTED] (Dan Sugalski):
 >>*) extract substring
 >
 >Rather than that, wouldn't you prefer to make "substring of target
 >string" the actual target of all these?

 Only if the resulting substring'd be used in the match.  Otherwise
 you're better off with just offset or offset/length, and defer
 substring extraction until the very end [...]

That's what I meant, e.g.:

  * find {first|last} instance of string   in [offset/length of] string
  * find {first|last} character of class X in [offset/length of] string

D'oh! Okay, I completely misunderstood. Yep, you're right and what I was thinking of wasn't sufficient to be actually useful.
--
Dan


--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to