Hi everyone...
Let's say you have a string like this :
START text END
You want to get what is between START and END ( text )... the pattern would be
#START(.*?)END#
BUT, if you have something like this :
START text1 START text2 END END
You want to get text2 first, then text1... So you want something like this :
START (everything different than "END") END
I tried something like this...
#START(?!END)END#
But it doesn't work... modifying to...
#START(?!END*)END#
Doesn't too work and according to PHP.net, I cannot use "repeatitors" with negative lookaheads...
Would something have a brilliant idea about that one ?
Cheers !