Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^#+\s*(.*?)\{#(.*)\}
/
gm

Description

matches the titles from a markdown starting with #

i.e.

Campaign uploader {#15mins-campaign-uploader}

Submitted by Deepak O - a year ago