Regular Expressions 101

Community Patterns

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

0

Regular Expression
ECMAScript (JavaScript)

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

Description

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

Submitted by anonymous - a year ago