Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

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

Submitted by lypch@126.com - 4 years ago