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 etc. -- Chip Salzenberg - a.k.a. - <[EMAIL PROTECTED]> "Persistence in one opinion has never been considered a merit in political leaders." --Marcus Tullius Cicero