Sunday, March 14, 2010

Vim Regex Simplification

\v can be used to simplify the regex. For example to search for {foo} one can use \v\{(\w+)\}.


Source: http://briancarper.net/blog/vim-regexes-are-awesome

No comments: