http://www.perlmonks.org?node_id=169947


in reply to RegEx Problem

s/([A-Z])/-lc($1)/eg
Near as I can tell.