Hi,
I've got a long string that I've read from a file or URL.
How can I extract intro a table all the text that is between two delimiters? (which would be 2 strings)
for example:
Let's say the string is "bla bla bla bla start text1 end bla bla start text2 end bla bla start text3 end bla bla"
What I need is get all the bits in that string that are between the delimiters "start" and "end". (given that those delimiters could be any strings)
I need something that returns:
$result[0] : "text1"
$result[1] : "text2"
$result[2] : "text3"
I'm trying to find something with regular expression, using preg_match_all, but can't get it right...
thanks a lot!