Need a regex to match anything between {{% and }}

Hi there

I need a regex to match any thing between {{% and }} that work with utf8 characters too.

for now im using ‘#{{%(\w|\s|\?|\.|\+|\|\^|\-)}}#u’ but there are some special chars that i cant handle them, for example check the uploaded file.

thanks in advanced.

How about this one - https://regex101.com/r/sH4qW8/1

nope, but solved here : http://community.sitepoint.com/t/need-a-regex-to-match-anything-between-and/203862