Regex tester
Pattern
Input
________________________________________________________________
___________________________________XXXXXXXXXXXXXXXXXXXXXXXXX____
__XXXX____XXXX____XXXXXXXXX________X_______________________X____
__X__X___X____X__X_________X__XXXX_X_______________________X____
__X__X___X____X__X_______X_X__X____X_______________________X____
__X__X___X____XXXX_________X__X__X__XXXXXXXXXXXXXXXXXXXXXXXX____
__XXXX____XXXX___XXXXXXXXXXX__X__X_X______________________X__XXX
_____________X___X____X___X___XXXX_X______________________X__X__
_____________X___X____X___X________X______________________X__X__
______________XXX______XXX________XXXXXXXXXXXXXXXXXXXXXXXX___X__
__________________________________XX_________________________XXX

Options
Replacement
Click the context tab to see replacements.
4 matches found in about 41 milliseconds.
IndexPositionMatched String$1$2$3$4$5$6$7
0135XXXXempty string_____X____XXXX_________X__X__X__XXXXXXXXXXXXXXXXXXXXXXXX____
__XXXX
4 captures
  1. ____XXXX____XXXXXXXXX________X_______________________X____
    __X__X
  2. ___X____X__X_________X__XXXX_X_______________________X____
    __X__X
  3. ___X____X__X_______X_X__X____X_______________________X____
    __X__X
  4. ___X____XXXX_________X__X__X__XXXXXXXXXXXXXXXXXXXXXXXX____
    __XXXX
empty stringXXX
4 captures
  1. X__X
  2. X__X
  3. X__X
  4. XXX
empty string
1142XXXXXXXXempty string____XXX_________X__X__X__XXXXXXXXXXXXXXXXXXXXXXXX____
__XXXX____XXXX_
4 captures
  1. ___XXXXXXXXX________X_______________________X____
    __X__X___X____X
  2. __X_________X__XXXX_X_______________________X____
    __X__X___X____X
  3. __X_______X_X__X____X_______________________X____
    __X__X___X____X
  4. XXX_________X__X__X__XXXXXXXXXXXXXXXXXXXXXXXX____
    __XXXX____XXXX_
empty stringXXXX_
4 captures
  1. X____X
  2. X____X
  3. X____X
  4. XXXX_
empty string
2344XXXXXXempty string_______X___X________X______________________X__X__
______________XXX_
4 captures
  1. _________X__X__X__XXXXXXXXXXXXXXXXXXXXXXXX____
    __XXXX____XXXX___X
  2. XXXXXXXXXX__X__X_X______________________X__XXX
    _____________X___X
  3. ____X___X___XXXX_X______________________X__X__
    _____________X___X
  4. ____X___X________X______________________X__X__
    ______________XXX_
empty stringXXX_
4 captures
  1. X___X
  2. X___X
  3. X___X
  4. XXX_
empty string
3366XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXempty string________________________X__
______________XXX______XXX________XXXXXXXXXXXXXXXXXXXXXXXX_
4 captures
  1. X____
    __XXXX____XXXX___XXXXXXXXXXX__X__X_X______________________X
  2. __XXX
    _____________X___X____X___X___XXXX_X______________________X
  3. __X__
    _____________X___X____X___X________X______________________X
  4. __X__
    ______________XXX______XXX________XXXXXXXXXXXXXXXXXXXXXXXX_
empty stringXXXXXXXXXXXXXXXXXXXXXX_
4 captures
  1. X______________________X
  2. X______________________X
  3. X______________________X
  4. XXXXXXXXXXXXXXXXXXXXXX_
empty string
________________________________________________________________
​___________________________________XXXXXXXXXXXXXXXXXXXXXXXXX____
​__XXXX____XXXX____XXXXXXXXX________X_______________________X____
​__X__X___X____X__X_________X__XXXX_X_______________________X____
​__X__X___X____X__X_______X_X__X____X_______________________X____
​__X__X___X____XXXX_________X__X__X__XXXXXXXXXXXXXXXXXXXXXXXX____
​__XXXX____XXXX___XXXXXXXXXXX__X__X_X______________________X__XXX
​_____________X___X____X___X___XXXX_X______________________X__X__
​_____________X___X____X___X________X______________________X__X__
​______________XXX______XXX________XXXXXXXXXXXXXXXXXXXXXXXX___X__
​__________________________________XX_________________________XXX
​
  1. ________________________________________________________________
    ___________________________________XXXXXXXXXXXXXXXXXXXXXXXXX____
    __X
  2. XX
  3. __
  4. ___X____XXXX_________X__X__X__XXXXXXXXXXXXXXXXXXXXXXXX____
    __XXXX
  5. XXX
  6. empty string
  7. X____
  8. XXXX
  9. ____
  10. XXX_________X__X__X__XXXXXXXXXXXXXXXXXXXXXXXX____
    __XXXX____XXXX_
  11. XXXX_
  12. empty string
  13. ____XXXXXXXXX________X_______________________X____
    __X__X___X____X__X_________X__XXXX_X_______________________X____
    __X__X___X____X__X_______X_X__X____X_______________________X____
    __X__X___X____
  14. XXX
  15. ___
  16. ____X___X________X______________________X__X__
    ______________XXX_
  17. XXX_
  18. empty string
  19. X_________X__X__X__
  20. XXXXXXXXXXXXXXXXXXXXXX
  21. ______________________
  22. __X__
    ______________XXX______XXX________XXXXXXXXXXXXXXXXXXXXXXXX_
  23. XXXXXXXXXXXXXXXXXXXXXX_
  24. empty string
  25. XX____
    __XXXX____XXXX___XXXXXXXXXXX__X__X_X______________________X__XXX
    _____________X___X____X___X___XXXX_X______________________X__X__
    _____________X___X____X___X________X______________________X__X__
    ______________XXX______XXX________XXXXXXXXXXXXXXXXXXXXXXXX___X__
    __________________________________XX_________________________XXX