3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '{\rtlch\fcs1 \af56 \ltrch\fcs0 \i\f56\insrsid13383763\charrsid4210380 \\\'e1}'; echo preg_replace('#(\{\\\\rtlch\\\\fcs1 \\\\af56 \\\\ltrch\\\\fcs0 \\\\i\\\\f56\\\\insrsid13383763\\\\charrsid4210380)( \\\\\'e1)(\})#', '$1 ciao $3', $string);
Output for 4.3.0 - 7.1.0
{\rtlch\fcs1 \af56 \ltrch\fcs0 \i\f56\insrsid13383763\charrsid4210380 ciao }