in reply to How to delete ^M character using regex

The dos2unix (which can be found on your local unix-like box) may also be of help to you.

Also most editors silently do the CRLF->CR->LF and back translations without even telling you now (since editors have come to realise that programers ``just don't care what the end of the line is'', and ``can we just get on with coding please?'' -- fickle bunch those coders)

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Replies are listed 'Best First'.
Re^2: How to delete ^M character using regex
by shmem (Chancellor) on Dec 21, 2006 at 14:03 UTC
    yeah, *except* if there's a \r missing at least on one line of the file - fickle bunch those editors ;)

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}