If I had a string of text e.g:
<p>Hello world here is the latest news ##news?123## or click here to read more</p>
I want to look through the string and find anything starting with ##news? Then I want to save that and the id 123 and trailing hashes as a variable, so the final output would be:
$myvar == "##news?123##"
How can I use PHP to read that input string and save that specific part as a variable?