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

Αρχική Σελίδα
Delete this message
Συντάκτης: admin
Ημερομηνία:  
Προς: 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.