Regex Builder
Use these buttons to add small regex pieces. A literal means exact text, a character class means a type of character, a quantifier means how many times something can repeat, a group keeps parts together, and anchors mark the start or end.
Flags change how the regex searches. Use g to find all matches, i to ignore uppercase/lowercase, and m to make ^ and $ work line by line.
Common Patterns
Edit Selected Pattern
Click a common pattern, then adjust the regex above. Phone numbers can also be quickly customized here.