Regular Expressions 101

Community Library Entry

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 - 3 years ago