Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
~
( # Group 1 \( # Opening bracket ( # Group 2 (?: # Non-capturing group [^()] # Match anything except opening or closing parentheses | # Or (?1) # Repeat Group 1 )* # Repeat the non-capturing group zero or more times ) # End of group 2 \) # Closing bracket )
~
gx
Test String
New
(user email ends with "@email.com" and user name is "John") or ((user email ends with "@domain.com" and user name is "Bob") or (user id is 5))
Extraction
Processing...