in reply to Editing File In-Place to put tab before UpperCase Letters
Slight mod to avoid leading space and need for capture. Puts a space (" ") instead of a tab. "\b" is not a space but a boundary.
perl -pi -e 's/(?!\A)(?=\p{IsUpper})/ /g'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Editing File In-Place to put tab before UpperCase Letters
by ikegami (Patriarch) on Jul 23, 2005 at 07:09 UTC | |
by Your Mother (Archbishop) on Jul 23, 2005 at 07:19 UTC | |
|
Re^2: Editing File In-Place to put tab before UpperCase Letters
by ranjan_jajodia (Monk) on Jul 23, 2005 at 06:30 UTC |