Regular Expressions 101

Community Patterns

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

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 - 3 years ago