This is the example of my string.
$x = \"John Chio - Guy\"; $y = \"Kelly Chua - Woman\";
I need the pattern for the reg replace.
I hope these patterns will help you =]
$pattern1='/.+(?=\s-)/' //This will match the string before the " -"; $pattern2='/(?<=\s-\s).+/' //This will match the string after the "- ";