<?php $a = "a\nb\nc"; echo(preg_replace("/b.*\n/", '', $a));
You have javascript disabled. You will not be able to edit any code.