Regular Expressions 101

Library entries

Match html data (data-*) attributes

Vote

0

Regular Expression
javascript

/
data-(\S+)=\"((?:\\.|[^"\\])*)"
/
gm

Description

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