Hello, I am trying to use preg_replace to clean up a string, I have read a few tutorial articles on how to use preg_replace with regex expressions, however even after all of the reading and my many tests, I am unable to get it right.
How, using preg_replace, would I clean out
I have a string of text,
and I would like to remove sort, and its value, and the &…
desired result would be
Can anybody help me with this??
I have been banging my head against a wall trying to understand how to do this…