Constant

BlueCloth::HruleBlockRegex

Special case for <hr />.

%r{
      (                                             # $1
              \A\n?                                # Start of doc + optional \n
              |                                    # or
              .*\n\n                               # anything + blank line
      )
      (                                             # save in $2
              [ ]*                         # Any spaces
              <hr                                  # Tag open
              \b                                   # Word break
              ([^<>])*?                    # Attributes
              /?>                                  # Tag close
              $                                    # followed by a blank line or end of 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.