Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-02-14 10:47
Flavor·ECMAScript (JavaScript)

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

Description

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

Submitted by anonymous