David Conrad wrote:
The regular expression syntax that Vim uses is, I'm sure, compatible
with Vi.
There were always a number of different regex dialects to choose from:
grep, egrep, sed. But in the last few years, pcre's have become popular,
and
virtually standard across a lot of different languages, from Perl to
Python to
Ruby to JavaScript to C# to Java.
Is there any way to use them in Vim? I've learned to used the Vim-style
regex's
in my s///'s, but if I could use one regex syntax across everything I
work with, it
would free up a few more brain cells for more constructive purposes.
Any advice is appreciated.
Thanks,
David Conrad
I suppose you may use them by embedding perl/python/ruby code in your
Vim scripts. Of course you would need at least one of +perl +python and
+ruby compiled-in, and, I suppose, the appropriate library installed,
but that oughtn't to be a problem for you; and (again, of course) such
scripts would be less portable (I'm thinking of distributing scripts at
vim-online etc.) since not every Vim user has perl/python/ruby support.
See
:help perl-using
:help python
:help ruby
Best regards,
Tony.