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