Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^```\w+\n(.*?\n)+?```(?!`)
/
gm

Description

用来匹配markdown里面的代码块

Submitted by anonymous - a year ago