Inspect numbered and named capture groups for a regular expression match.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Capturing parentheses are indexed by opening order, named groups are collected by label, and a match records the full text plus each participating subgroup. An absent optional group produces an undefined capture.
Today is 2024-01-15 and tomorrow is 2024-01-16
Pattern: /(\w+)/g Match 1: "Today" Group 1: "Today" Match 2: "is" Group 1: "is" Match 3: "2024" Group 1: "2024" Match 4: "01" Group 1: "01" Match 5: "15" Group 1: "15" Match 6: "and" Group 1: "and" Match 7: "tomorrow" Group 1: "tomorrow" Match 8: "is" Group 1: "is" Match 9: "2024" Group 1: "2024" Match 10: "01" Group 1: "01" Match 11: "16" Group 1: "16"
Log parsing, URL extraction, and replacement templates inspect captures.