Vim and regular expressions (was Re: [techtalk] Any good HTML editors for Linux?)

Mary Gardiner mary at puzzling.org
Sat Apr 7 19:01:48 EST 2001


On Thu, Apr 05, 2001 at 11:54:15PM -0700, vdf at juno.com wrote:
> So the trick would be to construct the correct expression using the
> beginning and ending characters or strings...

It is, as it turns out, possible to force without the ^.

Google search gives:
Quantifier	Description
\{-}		matches 0 or more of the preceding atom, as few as possible
\{-n,m}		matches 1 or more of the preceding characters...
\{-n,}		matches at lease or more of the preceding characters...
\{-,m}		matches 1 or more of the preceding characters...
		where n and m are positive integers (>0)

Of course I should have done this earlier... and I did... but until that
particular search I hadn't discovered the glories of Vim Regular Expressions
101 at http://physlab.sci.ccny.cuny.edu/~orycc/vim-regex.html

Mary.

-- 
Mary Gardiner
<mary at puzzling.org>
GPG Key ID: 77625870




More information about the Techtalk mailing list