in reply to Re: Case Munging
in thread Case Munging
So use this instead:
And the regex contains a (this time positive) lookbehind-assertion (and not lookahead as I wrote above).perl -i.old -pe 's/(?<=[A-Z])(\w)/lc $1/eg' <FILENAME>
Sorry for the confusion.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Case Munging
by AnomalousMonk (Archbishop) on Apr 17, 2009 at 02:16 UTC | |
|
Re^3: Case Munging
by mikeraz (Friar) on Apr 17, 2009 at 02:38 UTC |