Regex Tester
Test regular expressions live, with highlighted matches and groups.
Every regex token, explained, with copyable examples.
Greedy. A quantifier like .* consumes as much as it can and then gives characters back until the rest of the pattern matches. Adding ? makes it lazy, so .*? consumes as little as possible. Lazy matching is usually what you want when extracting content between delimiters.
Whenever you need grouping for alternation or a quantifier but do not need the captured text. Writing (?:…) instead of (…) keeps your capture group numbers stable and meaningful, which matters as soon as a pattern has more than one group.
Test regular expressions live, with highlighted matches and groups.
Look up any HTTP status code and what it actually means.
Find the MIME type for any file extension, or the reverse.
Your input is saved in this browser so a refresh does not lose it. Tools handling credentials are never saved.