Since 6 months I'm using the excellent Vim text-editor. The most interesting thing is Vim's excellent regex support build-in.
I would like to understand regex better in order to ask less questions here :)
I tried Regex coach, Espresso and other regex-help applications but I found out that even if they are working in these applications it often doesn't work in VIM. What kind of regex does Vim use? Are there any help applications in which I can build regex commands for Vim?
As far as I know vim
uses it's own flavor. Here is what the manual says:
Vim's regexes are most similar to Perl's, in terms of what you can do. The difference between them is mostly just notation;
If you want a better (more serious) explanation, look up "Traditional NFA" in Mastering Regular Expressions.
Vim has several regex modes, one of which is very magic
that's very similar to traditional regex. Just put \v
in the front and you won't have to escape as much.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With