I would have to defer to the regular expression experts, but VIM does not use 
the standard regular expressions that work on the command line, in say, Linux. 
Specifically, in the example cited, '/s' was used for whitespace matching, 
which is not available in standard regular expressions (c.f. GNU regular 
expression implementation). 

________________________________

From: Charles E Campbell Jr [mailto:[EMAIL PROTECTED]
Sent: Thu 12/14/2006 12:54 PM
To: Dan Mergens
Cc: [email protected]
Subject: Re: grep and regular expression



Dan Mergens wrote:

>Vim does not use strict regular expressions and grep does not use regular 
>expressions for pattern matching.
> 
>

I find this comment about Vim curious.  Do you perhaps mean that Vim
does not use Perl's regular expressions?
Grep also uses regular expressions, BTW, although not the same set as
Vim or Perl uses.

Regards,
Chip Campbell




Reply via email to