Greetings All,
I have a fairly simple question but cant seem to fathom out how to fix it.
If i have a string such as :
$string = "This is a string of Text blah blah";
All i need to do is preform a regex on that string to pull and store in an array whatever is between and tags.
So in this example I should end up with an array containing "a" and "Text"
Im new to regex's and was trying this :
ereg ("**(.*)**", $String, $NewArray);
But have been getting some strange results where its storing a match but also storing the ** parts aswell whereas I just need whats in between.
Could anyone point me in the right direction ?
Thanks in Advance
Edit Bah this forums formatting has screwed up the display. Ive changed the examples to ** now but they were originally tags.