3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = "hogehoge\n\n限定生産\n製品情報hogehoge"; $text = preg_replace('/.?限定生産.*$/u', '', $text); var_dump($text);
based on RUuEP
Output for 5.5.38 - 7.3.0beta1
string(43) "hogehoge 限定生産 製品情報hogehoge"