in reply to Regex replace leaking memory.

G'day Striker1440,

Welcome to the Monastery (at least, as a first-time poster — I see you registered four years ago).

I ran this for you using these:

This is perl 5, version 30, subversion 0 (v5.30.0) built for cygwin-th +read-multi This is perl 5, version 32, subversion 0 (v5.32.0) built for cygwin-th +read-multi

I had to install Devel::Leak for both. I used the cpan utility; both have v0.03.

Here's the output for 5.30 and 5.32, respectively:

new 0x600003a80 : 1 new 0x600003b38 : 1

— Ken