This is the example of my string.
$x = \"John Chio - Guy\"; $y = \"Kelly Chua - Woman\";
I need the pattern for the reg replace.
You could use strtok:
$x = strtok($x, '-');