original message from Dylan Reinhardt follows:
> So I'm stripping illegal chars out of some text with a regex.  But I'm
> left with a bunch of ^M chars that seem to function as line breaks.
> Anyone know what string escape code corresponds to this char and/or any
> good way to catch it in a regex?

usually it's '\r' for 'carriage return'

for example, using vi, :s/$/\r/
will append a carriage return to the end of line.

the utility 'fromdos' is a convenient filter for removing them.


-- 
William Hunt, Portland Oregon USA
_______________________________________________
PDXLUG mailing list
[EMAIL PROTECTED]
http://pdxlug.org/mailman/listinfo/pdxlug

Reply via email to