- or download this
m[
<% # Opening delimiter.
...
)* # As many non-closing-delims as you like.
%> # Closing delimiter.
]x
- or download this
"<% %%> %>"
"<%" matches <%
...
"%" matches [^>] so (?: ... )* has matched twice
"> " matches [^%]+ so (?: ... )* has matched 3 times
"%>" matches %> so regex finishes
- or download this
"<% %%>"
- or download this
m[
<% # Opening delimiter.
...
%* # PUNT!
%> # Closing delimiter.
]x