to match: Use subject.match(regexp) instead of regexp.exec(subject) so the outcome is not affected by the RegExp instance's lastIndex property.