I've ran into a problem.
lets say:
$string = "I <m_34c> love cars <m_76> a lot"
How can I edit the $string (the simplest way posible) so I can only end up with:
$string = "<m_34c><m_76>";
The <m... code can be "<m[0-9]{1,3}[a-z]{0,2}" -- if you know what I mean...
Examples: <m_5> <m_45> <m_9d> <m_23df> ...
That is, I need to strip all the text of $string and retain all the context that is <m_...>
Any help would be appreciated.
Ive searched, read manual to no help...
Best regards,
Omid Sadeghpour