I have a string like that as json response for a script:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, HTTP://unknown/string/in/unknown/place/ , sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"
is there a way to replace with an empty string using regular expression and php preg_replace?
I'm not familiar with regular expression, could you just provide an example? I basically need to remove the substring starting with 'http' and finishing with a space, IF possible.
thanks