3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pat = '\<front_page\>(.*)\<\/front_page\>\<\!-- /SLIDER --\>'; $sub = '\1'; $code = '<front_page><!-- ABECADŁO -->[%homebanner%]</front_page> <!-- /SLIDER --> <!-- BREADCRUMBS --> <!-- /BREADCRUMBS --> <!-- CONTENT --> <div id="content" class="clear"> <div class="wrapper"> <div id="mc" class="clear"> <no_front_page> <div id="ls"> [%left_side%] </div> <div id="ms"> [%mid_side%] </div> </no_front_page> <!-- ABECADŁO 2 --> <front_page> <div id="ms" class="fullpage"> [%mid_side%] </div> </front_page>'; mb_regex_encoding('UTF-8'); $code = mb_ereg_replace($pat, $sub, $code); var_dump($code);
based on ucg9P
Output for 5.3.19 - 7.2.0
string(812) "<front_page><!-- ABECADŁO -->[%homebanner%]</front_page> <!-- /SLIDER --> <!-- BREADCRUMBS --> <!-- /BREADCRUMBS --> <!-- CONTENT --> <div id="content" class="clear"> <div class="wrapper"> <div id="mc" class="clear"> <no_front_page> <div id="ls"> [%left_side%] </div> <div id="ms"> [%mid_side%] </div> </no_front_page> <!-- ABECADŁO 2 --> <front_page> <div id="ms" class="fullpage"> [%mid_side%] </div> </front_page>"