Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
Python

r"
(?P<attr>javascript|longdesc|src|alt|style|class|title|data\-[\w\-]+)\=('|"|\\"|\\')(?P<value>[^\2]+?)?\2
"
gi

Description

A search attribues in a image tag.

Submitted by Agustín Bouillet - 8 years ago