Help for this page

Select Code to Download


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