<?php $text = "hogehoge\n\n限定生産\n製品情報hogehoge"; $text = preg_replace('/.?限定生産.*$/u', '', $text); var_dump($text);
You have javascript disabled. You will not be able to edit any code.