Regular Expressions 101

Community Patterns

get Markdown image link and alt

1

Regular Expression
PCRE2 (PHP >=7.3)

/
!\[(.*?)\]\((.*?)\)
/
mg

Description

get image's link and alt in Markdown

Submitted by fgt1t5y - 7 months ago