Regular Expressions 101

Library entries

Data attributes with or without value

Vote

0

Regular Expression
pcre

/
(data-(?:[a-zA-Z0-9-]+))(?=[a-zA-Z0-9]*)(?:=[\"|\'](.*?)[\"|\'])?
/
gms

Description

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