Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Irregular
0.7.1
RegEx/HTML/DataAttribute.regex.txt
# Matches an HTML data attribute
\s{0,}
data-(?<Key>[a-z\-_:]*)
\s{0,}
=
\s{0,}
(?>
'(?<Value>
((?:''|\\'|[^'])*)
)'
|
"(?<Value>
.*?(?<!(\\))
)"
)