Regular Expressions 101

Community Patterns

html link finder

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 - 7 years ago