Regular Expressions 101

Community Patterns

markdown link detector

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 - 3 years ago