Regular Expressions 101

Community Patterns

Replace the P label around the img label

0

Regular Expression
Python

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

Description

Replace the P label around the img label

Submitted by lypch@126.com - 3 years ago