in reply to
global match except last one
look at "look around assertions"
$str =~ s/(?<=[a-z])(?=[A-Z])/_/g; say uc $str;
[download]
Comment on
Re: global match except last one
Download
Code
In Section
Seekers of Perl Wisdom