As the title says, I am looking for a regex, using php code, that given a $string with line breaks such as the following:
Hello my name is John Doe. Here is a cool video:
embed:http://youtube.com/watch......
I hope you liked it!
It would return:
Hello my name is John Doe. Here is a cool video:
I hope you liked it!