.* Regular Expression Tester (Regex)
Test regular expressions online with real-time match highlighting. Free regex tester supporting all JavaScript flags. No install needed.
Test regular expressions online with real-time match highlighting. Free regex tester supporting all JavaScript flags. No install needed.
Our Regular Expression Tester (Regex) tool is completely free and works directly in your browser. Test your regex in real time with match highlighting and captured groups list. No signup required, no data sent to any server.
Simply fill in the fields above and the result appears instantly. Our regular expression tester (regex) supports regex, regular expression, pattern, flags. The tool is optimized for both mobile and desktop.
SmartGap Tools offers over 30 free online tools. Also check out: JSON Formatter, Text Diff Tool. All our tools are fast, free and privacy-friendly.
A regular expression (regex) is a pattern-matching language used to search, validate and extract text. It is supported in virtually every programming language including JavaScript, Python, PHP and Java.
Enter your pattern in the regex field, set flags (g for global, i for case-insensitive, m for multiline), type your test string and click Test. Matching parts are highlighted instantly and the full list of matches appears below.
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$https?:\/\/[^\s]+\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}