Special char NOT requiring escape
Escape next character
0 or more quantifier
Match last given substitute string
In replacement: insert whole matched pattern
Interpreted as regular expression operator without escaping (escape to match literal)
Special char requiring escape
Beginning of a word
End of word
Any single char or end-of-line
1 or more quantifier
0 or 1 quantifier
or or 1 quantifier
n to m quantifier
at least n quantifier
0 to m quantifier
Interpreted as regular expression operators only when escaped (otherwize will be interpreted as literals).
delete all lines matching pattern
delete empty lines
Replace pattern by "new <whole matched pattern>"
Replace pattern by content of register "a"
Count nb occurence of pattern
Look around assertions
positive look behind
negative look behind
positive look ahead
negative look ahead
Must follow a group matching what to look behind or ahead (ex: \(<pattern>\)\@<=)
Help Us Go Positive!
We offset our carbon usage with Ecologi. Click the link below to help us!