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
/
(>|(?:[^><]*?(?:\s| )))(~(?!p\d+)[А-Яа-яЁёA-Za-z][А-Яа-яЁёA-Za-z0-9_]{1,20}?)(?=,|\.|\s| |<)
/
gmi
Input 1
New
[quote]var gg = 5; var crashed = <span style="color: red">~gg</span>; [color=red]//так выглядит побитовое отрицание, вернет -6[/color][/quote]
Substitution
[quote]var gg = 5; var crashed = <span style="color: red">~gg</span>; [color=red]//так выглядит побитовое отрицание, вернет -6[/color][/quote]