RegEx: match/return attribute/tag value

Viewed 9

I am using the following regex to match the attribute including its value, how can I retrieve just the tag's value?

var regex = /sqltable=\"([^"]*)\"/gm;
var dataStr = 'pkSequence="" sqltable="grp21876523" unbound="false"><compute-string expr=""/><key'
console.log(dataStr.match(regex));

0 Answers
Related