Regex tester
Pattern
Input
XYYXY
XYX
Options
Replacement
Click the context tab to see replacements.
3 matches found in about 6 milliseconds.
IndexPositionMatched StringReplacement$1
00XYXZX
12YZempty string
27XYXZX
XZZXY
​XZX
  1. empty string
  2. X
  3. empty string
  4. empty string
  5. XY
  6. X
  7. X