Skip to content

Instantly share code, notes, and snippets.

## SYNTAX:
var pattern = new RegExp(pattern, attributes); # attributes: g (global); i (case-sensitive); m (multiline matches)
var pattern = /pattern/attributes; # same as above
## BRACKETS:
[...]: Any one character between the brackets.
[^...]: Any one character not between the brackets.