这是我的字符串的例子.
$x = "John Chio - Guy"; $y = "Kelly Chua - Woman";
我需要reg替换的模式.
$pattern = ?? $x = preg_replace($pattern, '', $x);
谢谢
php regex
php ×1
regex ×1