Works in my normal regular expressions. When trying to match in Vim or gvim however, I can not seem to get it to work.
I tried something like this:
Is it not supported, or am I missing something?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
Vim has its own regex engine and it doesn't support
I think the best alternative you can find comes from
:h / (especially the last example):
\_ A collection. This is a sequence of characters enclosed in brackets. It matches any single character in the collection. Example matches ~ [xyz] any 'x', 'y' or 'z' [a-zA-Z]$ any alphabetic character at the end of a line [А-яЁё] Russian alphabet (with utf-8 and cp1251)