[pcre-dev] Matching string length limit

トップ ページ
このメッセージを削除
著者: Michael
日付:  
To: pcre-dev
題目: [pcre-dev] Matching string length limit
Hi, Philip

My English is bad, sorry. But I'll try...

I plan to use PCRE for operate with very long subject strings. In 99% cases I know beforehand, that my matching substring length can't exceed N symbols (N varies). This knowledge potentially very useful for matching optimization.
How about adding to pcre_exec and pcre_dfa_exec possibility to accept N parameter and backtrack if current matching substring yet not match at all, but it length already exceeds N?
Such behaviour may allow to greatly optimize matching process.

Thanks,
Michael