RegExp cheat sheet



var pattern = new RegExp(pattern, modifiers);

. - match any character (except newline)

Character classes

Alternation

Grouping

()

Quantifiers

Modifiers