$ptn = "/^Response.+?[:] /";
$str = "Response from Moore Auto: Thanks for your feedback";
$rpltxt = "";
echo preg_replace($ptn, $rpltxt, $str);
“Moore Auto” is a variable name, so I simply need the text after the colon and space. Desired final result would be the string “Thanks for your feedback” in this case. Much appreciated!
Simple with
substr(), like this: