I\'d like to change the following patterns:
getFoo_Bar
to:
getFoo_bar
(note the lower b)
Knowing
You can use perl for this one:
perl -pe 's/(get[A-Z][A-Za-z0-9]*)_([A-Z])/\1_\l\2/'
The \l is the trick here.
sed doesn't do upper/lowercase on matched groups.