Re: [pcre-dev] Partial match at end of subject

トップ ページ
このメッセージを削除
著者: ND
日付:  
To: Pcre-dev
題目: Re: [pcre-dev] Partial match at end of subject

New algorithm still have another parts of discussed oversight. For example
it returns full match instead of partial in following cases:

/(?![ab]).*/
ab\=ph
0:

/c*+/
ab\=ph,offset=2
0:


Alternative suggestion don't have this troubles. It simplify calculations
that main application must do after matching of every segment. It also
have more common and simple (for user understanding) algorithm and can
have simpler docs.


> ND quoted /(*COMMIT)(*F)/ as a
> simple example. Is (*COMMIT) the only way this might happen?


Not only. It may also happen with anchored patterns.