Thread View: fj.editor.vi
3 messages
3 total messages
Started by Ahkmed Jones
Fri, 07 Dec 2001 17:23
extended regular expressions
Author: Ahkmed Jones
Date: Fri, 07 Dec 2001 17:23
Date: Fri, 07 Dec 2001 17:23
12 lines
1127 bytes
1127 bytes
Hi there, 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 am wondering how to write such a command. It doesn't work on my vi editor. My editor does not seem to have the set extended option for extended regular characters (caldrake linux)
Re: extended regular expressions
Author: 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 '|'.
Re: extended regular expressions
Author: Norihiko Murase
Date: Tue, 18 Dec 2001 14:30
Date: Tue, 18 Dec 2001 14:30
24 lines
1594 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads