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
/
^(.+)(?<!\\)((?:\\\\)*)(\!\=|(?<!\!|\<|\>)=|\<\=|\>\=)(.+)$
/
gm
Input 1
1
New
name=toto tat\=a bla\bla=tor blood\\=orange wrong\\\=cops right\\\\=escaping extrem\\\\\=slash hoho\\\\\\=ho is\\\\\\\=magic noend= dou=bl=equal ma\=tche!=operation is\\!=not is<=inferior is>=superior tha>t=isno<t ----- ^(.+)((?<!\\)=)(.+)$
Substitution
[$1$2] $3 [$4]
name=toto tat\=a bla\bla=tor blood\\=orange wrong\\\=cops right\\\\=escaping extrem\\\\\=slash hoho\\\\\\=ho is\\\\\\\=magic noend= dou=bl=equal ma\=tche!=operation is\\!=not is<=inferior is>=superior tha>t=isno<t ----- ^(.+)((?<!\\)=)(.+)$