RegEx/HTML/DataAttribute.regex.txt

# Matches an HTML data attribute
\s{0,}
data-(?<Key>[a-z\-_:]*)
\s{0,}
=
\s{0,}
(?>
    '(?<Value>
        ((?:''|\\'|[^'])*)
    )'
    |
    "(?<Value>
    .*?(?<!(\\))
    )"
)