Home
Tester
Reference
About
Pattern
(?=\()|(\))
Input
text1
(text2
)
text2
text1 (text2) text2
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...
$1
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
2
matches found in about
5
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
Replacement
$1
0
6
empty string
whitespace
empty string
1
12
)
)
)
text1
(text2
)
text2
text1
(text2
)
text2