Regular Expressions 101

Community Patterns

Markdown checkboxes

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\[ ] (?!\~|\[\^\d+])
/
gm

Description

Match checkboxes that haven't been checked and are not followed by a footnote or crossed out text

Submitted by heygarrett.com - 3 years ago