Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-05-11 06:58
Flavor·Python

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

Description

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

Submitted by anonymous