Regular Expression (Regex) Tester
Test your JavaScript regex patterns against text.
Results
Enter a regular expression above to see results.
How to Use This Tool
Enter Regex & Text
- 1
Type your regular expression pattern in the 'Regular Expression' field (without slashes).
- 2
Select the desired flags (g: global, i: case-insensitive, m: multiline).
- 3
Enter the text you want to test against in the 'Test String' area.
View Results
- 1
Matches will appear automatically below as you type.
- 2
Each match shows the matched text, its starting index, and any captured groups.
- 3
If your regex pattern is invalid, an error message will be displayed.
Related Tools
All Tools
Productivity Tools
Calculation Tools
Time Tools
Document Tools
Creative Tools
Utility Tools
Random NumbersPassword GeneratorWeatherBase64 ConverterCase ConverterCredit Card ValidatorFuel Cost CalculatorMorse Code TranslatorRandom NamesURL Encoder/DecoderBraille TranslatorCSV/JSON ConverterData URI GeneratorHashing Tool.htaccess GeneratorHTML Table GenIBAN ValidatorPassword StrengthRegex Testerrobots.txt GenSubnet CalculatorUnicode InfoXML ValidatorCode FormatterJS MinifierCSS Validator