Have the following string i need to split.
$string = 'This is string sample - $2565'; $split_point = ' - ';
One: I need to be able to split the string into two parts using a regex or any other match and specify where is going to split.
Second: Also want to do a preg_match for $ and then only grab number on the right of $.
Any suggestions?
and
If you want, this could all be done in one regex with: