Regular expressions

Other topics

Remarks:

execute :h pattern to see a lot of regex related information

Word

Vim has special operators to match word beginning, word, end, and so forth.\< represents the beginning of a word and \> represents the end of a word.

Searching for /\<foo\> in the following text will only return the last foo.

football is not foolish foo

Contributors

Topic Id: 6533

Example Ids: 22382

This site is not affiliated with any of the contributors.