Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^---([\s\S]*?)---[\n\s\S]\n
/
g

Description

Parse header and body from hexo markdown post format

Submitted by anonymous - 3 years ago (Last modified 3 years ago)