[ale] regex question
Bao C. Ha
baoha at sensoria.com
Fri Jan 18 13:02:33 EST 2002
I usually try Crtl+v, then the CRTL-W if I want ^W.
It works for nvi and vim.
Bao
> -----Original Message-----
> From: Allan Neal [mailto:allankneal at yahoo.com]
> Sent: Thursday, January 17, 2002 8:35 PM
> To: ALE
> Subject: Re: [ale] regex question
>
>
> This doesn't work. No offence but if I type :s/ and then
> CTRL-W for the ^W
> it just backspaces. No ^W shows up. I know there is a way
> to do this as I
> was shown once how to convert a dos text file over deleting
> the ^M's at the
> end of each line in VI.
>
> Allan
> On Wed, Jan 16, 2002 at 02:04:17PM -0500, Benjamin Dixon wrote:
> >
> > You can press CTRL and then the control key you want to
> create. In the
> > vi s/// you will see the control character appear. So for
> ^M, you would
> > press CTRL-M and you should see it in the substitution.
> >
> > Ben
> >
> > On Wed, 16 Jan 2002, Allan Neal wrote:
> >
> > > I'm receiving daily quotes via a mailing list and some
> > > characters are messed
> > > up on occation. I get some control chars like ^R for
> > > a ' and ^W for a , and
> > > space and a ^V for a -. How, in vi, do you search for
> > > a control char to
> > > replace it in a :s/... statement?
> > >
> > > Thanks
> > > Allan
> > >
> > >
> > > =====
> > > Allan K. Neal
> > > allankneal at yahoo.com
> > > http://home.earthlink.net/~akneal/
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Send FREE video emails in Yahoo! Mail!
> > > http://promo.yahoo.com/videomail/
> > >
> > > ---
> > > This message has been sent through the ALE general
> discussion list.
> > > See http://www.ale.org/mailing-lists.shtml for more info.
> Problems should be
> > > sent to listmaster at ale dot org.
> > >
> >
> > Today's Random Quote--------------------------------------
> >
> > Latin is a language, As dead as can be. First it killed the
> > Romans, And now it's killing me.
> >
> > -----------------------------------------------------------
>
> --
> __________________________________________________________________
> /\ \
> \_| If you work for a living, you can appreciate what a Republican |
> | president can do for you and your money. If you grub money off |
> | of people for a living, you can appreciate what a Democratic |
> | president can do for you and other people's money. |
> | _____________________________________________________________|_
> \_/_______________________________________________________________/
>
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info.
> Problems should be
> sent to listmaster at ale dot org.
>
>
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list