Constant

BlueCloth::AtxHeaderRegexp

Regexp for matching ATX-style headers

%r{
      ^(\#{1,6})    # $1 = string of #'s
      [ ]*
      (.+?)         # $2 = Header text
      [ ]*
      \#*                   # optional closing #'s (not counted)
      \n+
}x
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.