If this patch doesn't go through (and I can see reasons why it wouldn't, but I'd like it to go through), the same functionality can be achieved by my new module,
Regexp::Keep. It's not on CPAN yet, but it's an XS module that does two things:
- filters regexes for the \K escape sequence, and turns them into (?{Regexp::Keep::KEEP})...
- and defines an XS function, KEEP(), that does what \K is supposed to do
Of course, constant-overloading is nasty, so I hope my patch is received well.
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;