in reply to How to delete ^M character using regex
^M is Carriage Return, which is \r in regexp parlance.
s/\r//;--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to delete ^M character using regex
by sgt (Deacon) on Dec 21, 2006 at 15:23 UTC | |
by rinceWind (Monsignor) on Dec 21, 2006 at 15:35 UTC | |
|
Re^2: How to delete ^M character using regex
by lovekumar (Initiate) on Dec 21, 2006 at 13:59 UTC |