Home
Tester
Reference
About
Pattern
(?:(\()|\[)(.*?)(?(1)\)|])
Input
Jim Bob Smith
[1975]
Joe Bob Public
(1955)
Jim Bob Smith [1975] Joe Bob Public (1955)
Options
Ignore Case
Ignore Whitespace
Explicit Capture
Culture Invariant
Singleline
Multiline
Right To Left
ECMA Script
Start from position:
Max matches to find:
Replacement
Replace matches with...
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
2
matches found in about
2
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
$2
0
14
[1975]
empty string
1975
1
38
(1955)
(
1955
Jim Bob Smith
[1975]
Joe Bob Public
(1955)
Jim Bob Smith
1975
Joe Bob Public
(
1955
empty string