Hi there, I have a requirement to search for the following variations and return an array. The preg_split function is perfect, however its the pattern I need help for. Basically, I will have a long strring with some html comments in there with a specific tag contained, eg:
<!-- <<[MYTAG]>> -->
However, as there may be other comments in there eg:
<!-- <<[MYTAG]>> This has some extra text -->
<!-- Some more text here <<[MYTAG]>> And more here.
However I need the whole comment to be the split point. The important bits are <!-- <<[MYTAG]>> -->
Any one got ideas on how I would go about that?