Matches and capture groups light up in the test string as you type, with positions and values for every group.
Every token of your pattern is explained in a tree – hover a line to see which part of the regex it describes.
The JavaScript flavor runs in your browser; the Java flavor runs on the real java.util.regex engine – possessive quantifiers, atomic groups and \Q…\E included.
Copy ready-to-run code for JavaScript, Python, Java, C#, PHP, Go, Ruby and Rust – with your flags and test string.