in reply to (Ovid) Re: Regex to zero suppress
in thread Regex to zero suppress
Ahh yes. I remember creating that in response to a similar question a few years ago in comp.lang.perl.misc, and then Joseph copied it for his Effective Perl Programming book, and now it's become part of the culture. Not quite as impactful as the Schwartzian Transform, but I remember getting a few "ooohs" and "aaaahs" over the simplicity of that.$num =~ s/\G0/ /g;
-- Randal L. Schwartz, Perl hacker
|
|---|