Regular Expressions 101

Community Patterns

get html tag attributes (name/value)

1

Regular Expression
ECMAScript (JavaScript)

/
([a-z]+)(?:="([\s\S]+?)"(?:\/>|\s))?
/
g

Description

no description available

Submitted by mekroth - 8 years ago