Regex tester
Pattern
Input
[tex1] [text [2]]
Options
Replacement
Click the context tab to see replacements.
2 matches found in about 1 millisecond.
IndexPositionMatched String$1${o}
00[tex1]tex1empty string
17[text [2]]text [2]empty string
[tex1] [text [2]]
  1. empty string
  2. tex1
  3. whitespace
  4. text [2]
  5. empty string