Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
<(?:button|input)\s+[^>]*class\s*=\s*["'][^"']*btn[^"']*[^>]*>
"
gmi

Description

Find all inputs and buttons with class btn.

Submitted by anonymous - 9 years ago