in reply to Applying regexes to streams: Perl enhancement idea
I suspect you could do that with a negitive look-ahead assertertion on $ at the end of your regex -- IE assert that the end of the match isn't the end of the string. I don't really understand regexes, though, and that wouldn't set pos(), because the regex would fail. You could combine that technique with a (?{code}) block that sets a variable to pos(), though, no?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Applying regexes to streams: Perl enhancement idea (not that easy)
by tye (Sage) on Jan 07, 2003 at 23:29 UTC | |
by Aristotle (Chancellor) on Jan 08, 2003 at 08:15 UTC | |
by tye (Sage) on Jan 08, 2003 at 17:06 UTC | |
by Aristotle (Chancellor) on Jan 11, 2003 at 18:44 UTC | |
by tye (Sage) on Jan 13, 2003 at 00:39 UTC | |
Re^2: Applying regexes to streams: Perl enhancement idea
by diotalevi (Canon) on Jan 12, 2003 at 06:16 UTC |