Hey guys, I need help on regular expression here.
I want PHP to be able to splits a string in sections of arrays such that a substring enclosed by <%me %> will be in its own slot.
So for example,
Hi there how are <%me date(); %> => {"Hi there how are ", "<%me date(); %>}
Hi there how are you<%me date(); %> => {"Hi there how are you", "<%me date(); %>}
Hi there how are you<%me date(); %>goood => {"Hi there how are you", "<%me date(); %>, "good"
Hi there how are you<%me date(); %> good => {"Hi there how are you", "<%me date(); %>}, " good"}
Note the white space won't hinder the tags from getting parsed in.