Command Palette

Search for a command to run...

Regex Cheatsheet

Regular Expression cheatsheet.

Normal characters

ExpressionDescription
. or [^\n\r]any character excluding a newline or carriage return
[A-Za-z]alphabet
[a-z]lowercase alphabet
[A-Z]uppercase alphabet
\w or [A-Za-z0-9_]alphabet, digit or underscore
\W or [^A-Za-z0-9_]inverse of \w
\d or [0-9]digit
\D or [^0-9]inverse of \d (non-digit)
\Sinverse of \s