Test regular expressions
Type the pattern at the top and the test text on the left. On the right the matches are highlighted, with a list of their groups. With Replace you see the text already substituted.
. | any character | \d \w \s | digit · letter/number · whitespace |
* + ? | 0+ · 1+ · 0 or 1 | {2,5} | between 2 and 5 |
[abc] | one of those | (…) | capture group |
^ $ | start / end | a|b | a or b |
Flags: g all · i ignore case · m multiline · s dot matches newlines · u unicode. In replacement: $1, $<name>, $&.