Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

Replace the P label around the img label

Submitted by lypch@126.com - 4 years ago