We explained this a bit wrong, again๐ What we really have is a really long string like:
xxxxxxxxxxxxxx<?xmlyyyyyyyyyyyyyyy</OAI-PMH>xxxxxxxxxxxxxxxxxxxxxxxx
*where x and y can be any character, including newline.
we want what's in blue.
I don't know if we can use substr because we don't know how many x's come before and after or how many y's are in between.
Thanks a lot everyone!