Find four-letter words
\b\w{4}\b with gi
Each match and index
Test regular expressions and inspect every match.
Quick answer
Enter a JavaScript regular-expression pattern without surrounding slashes, choose flags, and test it against sample text.
Matches
Matches and positions will appear here.
Illustrative view
Matches are located along the source text.
Enter a JavaScript regular-expression pattern without surrounding slashes, choose flags, and test it against sample text. The tool reports match text, starting positions, and capture groups.
A global flag is applied internally so every match can be listed, with a safety limit of 1,000 matches.
\b\w{4}\b with gi
Each match and index
(\d{4})-(\d{2})-(\d{2})
Full date and three groups
The tool uses the JavaScript RegExp engine available in your browser.
No. Enter only the pattern and provide flags in the separate flags field.
No. This tool runs locally in your browser, so the values or files you provide are not sent to a ToolStack server.
Keep going