RegEx Playground
//
Match all occurrences
Case-insensitive matching
^ and $ match start/end of each line
. matches newlines
Enable unicode support
Match from lastIndex only
No matches found
Quick Reference
Common Metacharacters
.
- Any character except newline\w
- Word character [A-Za-z0-9_]\d
- Digit [0-9]\s
- Whitespace character^
- Start of string/line$
- End of string/line
Quantifiers
*
- 0 or more+
- 1 or more?
- 0 or 1{n}
- Exactly n times{n,}
- n or more times{n,m}
- Between n and m times