On Mon, 2004-03-01 at 14:30, Ken Brush wrote:
> > Hey,
> >
> > 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?
> >
> 
> just use ctrl-v (insert char) to insert the ctrl-m
> 
> Granted, I'm assuming you're doing this from the command line or the vi
> editor.

I'm using vim and was able to insert the ^M... but they don't seem to
have gotten stripped out.  Maybe I need to test a bit more to make sure
I don't have some other problem downstream of the regex.

Thanks,

Dylan

_______________________________________________
PDXLUG mailing list
[EMAIL PROTECTED]
http://pdxlug.org/mailman/listinfo/pdxlug

Reply via email to