Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\[([^\[\]]*?)\]\((\S*?)\)
/
gsi

Description

Extracts title and link from Markdown inline link to be placed into an HTML anchor tag.

Submitted by Mike Johnson - 11 years ago