Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
##\s(.)*?\\n
/
gm

Description

Find all JIRA H2 from an Inline MD.

  • In MD all # are considered H1 in JIRA Syntax
  • In MD all ## are considered H2 in JIRA Syntax
  • In MD all ### are considered H3 in JIRA Syntax
  • In MD all #### are considered H4 in JIRA Syntax
Submitted by Joaquin Briceno - 6 years ago