Turn a regular expression into readable steps, inspect tokens, and jump back into the pattern editor.
Pattern
Paste the regular expression you want to break down into readable pieces.
Flags & Presets
Validation
Valid regular expression
10 tokens explained, 1 capturing group, 3 quantifiers.
Explanation
10 tokens (click to show in editor)
0-1
^
Matches the start of the string or line.
1-2
#
Matches the literal text "#".
2-7
{1,6}
Repeats the previous token according to {1,6}.
7-9
\s
Matches spaces, tabs, and other whitespace characters.
9-10
+
Repeats the previous token one or more times.
10-11
(
Creates a capturing group that can be referenced later.
11-12
.
Matches any character except line breaks unless dotall is enabled.
12-13
13-14
)
Closes the current group.
14-15
$
Matches the end of the string or line.