Home   Notes   Contact Me

Regular Expressions

Local

External


Table

Codes saying where a value is valid

CodeDescription
WWindows
vvim

Regex Table

Valid
Case
Codes
Invalid
Case
Codes
ValueDescription
^This followed by a character, means an occurance of the character at the begining of the line
$ This matches to the end of the line, but does not include the end of line char (so in a substitution expression, it will not get replaced).
Used with an expression before it.
\nMatches newline, can be used in substitutions
W[^:Wh]First non-whitespace character
W:WhWhitespace
W=[^Q]*Matches from the '=' (inclusive) until the end of the line (but doesn't include the eol char(s)