I'm reading in a file's contents as a string. From this string, I want to get a substring. All I know is the text that is beginning of the substring and the end ot the substring, I do not know what is contained in the string between the beginning and the end. This will occur more than once in the main string.
Example String:
$fileContents = "StartblahblahblahEndStartblahEndStartblahblahblahbalhEnd"
I need to get each substring between start and end, and preferrably load each substring into an array. Can someone please point me in the right direction. Thanks.