Constant

BlueCloth::StrictBlockRegex

Nested blocks:

<div>
        <div>
        tags for inner block must be indented.
        </div>
</div>
%r{
      ^                                             # Start of line
      <(#{StrictTagPattern})        # Start tag: \2
      \b                                            # word break
      (.*\n)*?                              # Any number of lines, minimal match
      </\1>                                 # Matching end tag
      [ ]*                                  # trailing spaces
      $                                             # End of line or document
}ix
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.