Article View: fj.editor.vi
Article #286Re: extended regular expressions
From: Norihiko Murase
Date: Tue, 18 Dec 2001 14:24
Date: Tue, 18 Dec 2001 14:24
16 lines
1508 bytes
1508 bytes
|From: ahkmedjones@hotmail.com |Subject: extended regular expressions |Message-ID: <u11usdf2dqm0b@corp.supernews.com> |Date: 2001/12/08(Sat) 02:23:25 JST | |>I am trying to write an EX command like the following : |> |>: %s/this|that/\u&/ |> |>I want it to find this OR that and capitalize the first letter. I could do it by writing the following command: : %s/this\|that/\u&/ That is, you should add '\'(backslash) right before '|'.
Technical Details
Message-ID:
<011218232432.M0117251@std3ss18.u-aizu.ac.jp>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.media.kyoto-u.ac.jp!news.yamada.gr.jp!news.mcu.or.jp!navi.honnet.co.jp!honnetnews!fiasapnews!fiaskry!topic.ad.jp!nh1.u-aizu.ac.jp!s1080224References:
<u11usdf2dqm0b@corp.supernews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7c9f,60ad9dacde2a4c77 X-Google-Attributes: gidf7c9f,public X-Google-ArrivalTime: 2001-12-18 06:25:37 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.media.kyoto-u.ac.jp!news.yamada.gr.jp!news.mcu.or.jp!navi.honnet.co.jp!honnetnews!fiasapnews!fiaskry!topic.ad.jp!nh1.u-aizu.ac.jp!s1080224 From: s1080224@u-aizu.ac.jp (Norihiko Murase) Newsgroups: fj.editor.vi Subject: Re: extended regular expressions Date: Tue, 18 Dec 2001 23:24:32 JST Organization: University of Aizu, Fukushima, Japan Lines: 16 Message-ID: <011218232432.M0117251@std3ss18.u-aizu.ac.jp> References: <u11usdf2dqm0b@corp.supernews.com> NNTP-Posting-Host: std3ss18.u-aizu.ac.jp Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: nh1.u-aizu.ac.jp 1008685472 6407 163.143.58.50 (18 Dec 2001 14:24:32 GMT) X-Complaints-To: usenet@u-aizu.ac.jp NNTP-Posting-Date: 18 Dec 2001 14:24:32 GMT X-Newsreader: mnews [version 1.22PL5] 2001-02/07(Wed)