Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(<a [^>]* href=['\"]([^'\"]+)['\"][^>]*>)
"
gx

Description

For Object Orientated Programming p188 case study. Finds <a> tag links in str representation of html.

Submitted by anonymous - 8 years ago