Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
<div\s\w{5}=\"print[^>]*?>[\s\S]*?<\/div>
"
gi

Description

removes divs of the print class

Submitted by Nicolaj - 9 years ago