Regular Expressions 101

Markdown Image Link

Open Workspace
  • Python
  • Match
0

Regular Expression

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

Description

A regex to find valid markdown images

Submitted by Anonymous