I m trying to write a (I think) pretty simple RegEx with PHP but it s not working. Basically I have a block defined like this:
%%%%blockname%%%%
stuff goes here
%%%%/blockname%%%%
我不喜欢Ref,但这是我尝试的:
preg_match_all( /^%%%%(.*?)%%%%(.*?)%%%%/(.*?)%%%%$/i ,$input,$matches);
它返回了一个有4个空条目的阵列。
我也认为,除了实际工作外,这还需要第三者的某些点子,因为它应当等同于第一个点?
请告诉我: