Regex tester
Pattern
Input
[foo.bar]
[foo.foo.bar]
[.bar]
[foo.]
[.foo.]

Options
Replacement
Click the context tab to see replacements.
2 matches found in about 1 millisecond.
IndexPositionMatched String$1
01foo.barfoo.bar
112foo.foo.barfoo.foo.bar
[foo.bar]
​[foo.foo.bar]
​[.bar]
​[foo.]
​[.foo.]
​
  1. [
  2. foo.bar
  3. ]
    [
  4. foo.foo.bar
  5. ]
    [.bar]
    [foo.]
    [.foo.]