Regular Expressions 101

Community Patterns

Markdown Heading

2

Regular Expression
Java 8

"
(?<=(^#)\s).*
"
gm

Description

Parses the text following a '#' and a space all the way up to the next return character. Additional #'s can be added for parsing of other type of headings!

Submitted by Hansen - 2 years ago