Hi everyone,
I have bumped into the following problem: I need to parse a string for different tags (eg., <xtext></xtext>, <xfile></xfile, etc.). If it would be a single string to parse for, it would be easy to find it with the 'explode' function. But: how do I make a function like explode, which could be called like:
explode ("<xtext>" | "<xfile>", $my_string);
It doesn't have to be a function exactly like that, but it should be a algorithm which returns me the first occurence of one of the strings in a bigger text.
Thank you,
bogdan