Regex Tester
Test JavaScript regular expressions, flags, match positions, capture groups, and highlighted results.
Status
Valid
Matches
2
Expression
/INV-\d{4}-\d{3}/m
Regular expression
Test a JavaScript regular expression against sample text.
Test text
Highlighted result
Invoice INV-2026-001 was paid on 2026-06-27. Contact billing@example.com for details. Invoice INV-2026-002 is pending.
Match list
- INV-2026-001at index 8
- INV-2026-002at index 94
Related calculators
- JSON FormatterFormat, validate, minify, and inspect JSON directly in your browser.
- Password GeneratorGenerate random passwords with adjustable length, character groups, and estimated entropy.
- Character Count ToolCount characters, words, lines, UTF-8 bytes, and compare two text versions directly in your browser.
- Base64 Encoder and DecoderEncode and decode UTF-8 text with standard or URL-safe Base64 output.
- Percent CalculatorCalculate percentages, percentage change, discounts, increases, decreases, and ratios in one focused tool.
- Date CalculatorCalculate date differences, add or subtract time, and check countdowns between calendar dates.