
Getting the above error, but not exactly sure how to fix it. According to Regex101, the regular expression should be valid and matches what I want. Code:
const parseAttrMatches = (val) => { var reg = \d{1,3}\s+[a-z ]+/ig; var result; while((result = reg.exec(val)) !== null) { logDebug(result) } return }
Ideas?
- E