Regular Expressions 101

Community Patterns

123...6

Markdown Image Link

0

Regular Expression
Python

r"
(?:[!]\[(?P<caption>.*?)\])\((?P<image>.*?)\)
"
gm

Description

A regex to find valid markdown images

Submitted by anonymous - 3 years ago