JavaScript Regex Tester with Captures and Replacements
Test captures with the JavaScript regex tester
Enter the expression and flags in their separate fields. Supply several positive examples and at least one near miss. To extract issue numbers such as TASK-804, try TASK-([0-9]+) on a sample containing TASK-804, TASK-19 and TASK-new. The first two matches should have a captured digit sequence. Inspect the text around each match to see whether you also need a boundary at the start or end.
The matches report lists offsets, complete matches and captured groups. The tester enumerates occurrences across the sample so you can inspect later matches as well as the first.
Read more here: Source link
