🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.editor.vi
Article #287

Re: extended regular expressions

#287
From: Norihiko Murase
Date: Tue, 18 Dec 2001 14:30
24 lines
1594 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 '|'.

# I use Vim-3.0, which was produced by Bram Moolenaar.


---
Sincerely,
Norihiko Murase
E-mail: s1080224@u-aizu.ac.jp
Technical Details
Message-ID: <011218233023.M0117352@std3ss18.u-aizu.ac.jp>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!toyama-ix.net!topic.ad.jp!nh1.u-aizu.ac.jp!s1080224
References: <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:35:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!toyama-ix.net!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:30:23 JST
Organization: University of Aizu, Fukushima, Japan
Lines: 24
Message-ID: <011218233023.M0117352@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 1008685823 6568 163.143.58.50 (18 Dec 2001 14:30:23 GMT)
X-Complaints-To: usenet@u-aizu.ac.jp
NNTP-Posting-Date: 18 Dec 2001 14:30:23 GMT
X-Newsreader: mnews [version 1.22PL5] 2001-02/07(Wed)