Hey, I have a string and how do I remove all of the contents before a match and all the contents after a certain match, thanks
To remove stuff before 'match':
$string = preg_replace('/(.?)(match)(.?)$/','\2\3',$string);
To remove stuff after:
$string = preg_replace('/(.?)(match)(.?)$/','\1\2',$string);
thanks