Author: Philip Hazel Date: To: ND CC: pcre-dev Subject: Re: [pcre-dev] Add ability to return last MARK with failed match
On Fri, 11 Nov 2011, ND wrote:
> I suppose is not the Perl way. It seems that Perl keeps last MARK value
> regardless starting point was advanced.
>
> Perl code:
> $_ = "abc";
> if (/b(*:m)f|a(*:n)w/) { print "-YES-$REGMARK"; }
> else { print "-NO-$REGERROR"; }
>
> Result:
> -NO-m
>
> *MARK:m was keeped by Perl in $REGERROR and may be accessed after match fails.
Hmm. OK, I've made a note to do some further investigation into this
issue.