[pcre-dev] [Bug 2511] Feature Request: PCRE2_SUBSTITUTE, op…

Top Pagina
Delete this message
Auteur: admin
Datum:  
Aan: pcre-dev
Onderwerp: [pcre-dev] [Bug 2511] Feature Request: PCRE2_SUBSTITUTE, option for getting *just* the replacement of a single match
https://bugs.exim.org/show_bug.cgi?id=2511

--- Comment #3 from Philip Hazel <ph10@???> ---
I haven't had time to look at your reference yet, but it does occur to me that
it would be simple to add an option PCRE2_SUBSTITUTE_REPLACEMENT_ONLY that does
not copy the "in-between" bits of subject, so the output would just be the
replacement. If you set the global flag, you would get a concatenation of all
the replacements. I will consider further. (Maybe this is what you thought of
as well.)

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