Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-04-26 08:37
Flavor·Python

r"
(<img\s.*?)(src=\".+?\")(.*?/>)
"
gm
Open regex in editor

Description

Extract the src property with its content and recompose the img label

Submitted by lypch@126.com