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


in reply to RegEx Problem

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

Replies are listed 'Best First'.
Re: Re: RegEx Problem
by dws (Chancellor) on May 29, 2002 at 00:56 UTC
    s/([A-Z])/-lc($1)/eg

    Near as I can tell.

    -i think it loses on an edge condition.