Unix iTOps Tube

Wednesday, May 16, 2012

Vim Match problem

Goodmorning,

I've some problem in using regular expression in a VIM syntax configuration file.

I've need to match a string as <<< some to match >>> so that it matches only some to match .

With standard regular expression i know that for this goal works fine the regex:



(?<=<{3}).*(?=>{3})



but in Vim syntax files this doesn't work. I've tested

\(?<=<\{3\}\).*\(?=>\{3\}\)

or

\(\?\<\=<\{3\}\).*\(\?\=>\{3\}\)

but nothing, since in this later when I'm opening the file, it turns always the error

"E:64 \? follows nothing".

I'm sorry about my disgusting English! :D



Thank for reads




No comments:

Post a Comment