Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(K|k)ey([U|u]p|[D|d]own|[P|p]ress)
/
gm
Input 1
New
Keyup Keydown KeyUp KeyDown Keypress KeyPress RegistrationEnterKeyPress
Substitution
Keyup Keydown KeyUp KeyDown Keypress KeyPress RegistrationEnterKeyPress