Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?<!!)(?:\[(?P<text>.*?)\]\((?P<link>.*?)\))
/
gm

Description

Can find markdown links and give you the text and links. Ignores image links.

Submitted by anonymous - 4 years ago