Regex tester
Pattern
Input
1
2

3
Options
Replacement
Click the context tab to see replacements.
2 matches found in about 10 milliseconds.
IndexPositionMatched StringReplacement$1
01whitespaceempty stringempty string
14whitespacewhitespacewhitespace
2 captures
  1. whitespace
  2. whitespace
123
  1. 1
  2. 2
  3. whitespace
  4. 3