Hi tek-tips.
Perl noob here, I have the following code for turning anything to lower case after 3 slashes :
$input = 'tea/coffee/eggs/BACON';
$output = $input =~ s/^((?:.*?\/){3}(.*)$/$1.lc($2)/er;
print $output;
Question, how can I quickly reverse the application of lc and only apply it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.