Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
!\[(.*?)\]\(((?!http)\/?[^\s]+\.(png|jpg))\)
/
gm

Description

正则匹配markdown中的图片 但排除 http 开头的地址

Submitted by anonymous - 2 years ago