[pcre-dev] [Bug 2488] Feature Request: PCRE2_SUBSTITUTE_LITE…

トップ ページ
このメッセージを削除
著者: admin
日付:  
To: pcre-dev
題目: [pcre-dev] [Bug 2488] Feature Request: PCRE2_SUBSTITUTE_LITERAL, option for substitute already matched
https://bugs.exim.org/show_bug.cgi?id=2488

--- Comment #4 from Kilian <kkilger@???> ---
That's actually exactly how I implemented it in my software. My code reads as
follows:

if (subs == 0 && ((soptions & PCRE2_SUBSTITUTE_NO_MATCH) != 0)
rc = match_data->rc;
else
rc = pcre2_match ...

So after the first match it continues as normal.

--
You are receiving this mail because:
You are on the CC list for the bug.