Regex

Test regular expressions

Frequently Asked Questions

What is a regular expression?
A regular expression (regex) is a pattern that describes a set of strings. It is used for searching, matching, and manipulating text in programming and text editors.
What are common regex metacharacters?
Common metacharacters: . (any char), * (0+ times), + (1+ times), ? (0-1 times), ^ (start), $ (end), [] (character class), () (group), | (or).
How do I make regex case-insensitive?
Use the "i" flag: /pattern/i in JavaScript, re.IGNORECASE in Python, or (?i) inline modifier. This makes the pattern match regardless of letter case.