Regular Expressions 101

Library entries

html tags with attributes

Vote

0

Regular Expression
python

'''
< ([a-z]+ #tag name ( #attributes begin \s+[a-z]+\s*= #attribute name \s*("([^"\\]|\\.)*"|\'([^\'\\]|\\.)*\') #attribute value is a quoted string )*\s* #attributes end /? #can close single tag | #or /[a-z]+) #closing tag >
'''
gix

Description

Loading markdown...
Submitted by anonymous - 3 years ago