Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Ternary Operator replacement with OR
Open Workspace
Python
Substitution
Created 2020-11-02 19:10
0
Regular Expression
r"
(
(
[
\|
&
]
|
return
|
[^
=<>|
\*
]
=
|
\(
|
\[
)
\s
*
)(
[
a
-
zA
-
Z
\.
_
]
+
)
\s
*
\?
\s
*
\3
\s
*
:
\s
*
"
gm
Description
No description provided.
Submitted by
Anonymous