Regex.js 292 Bytes
Newer Older
Justin Woo's avatar
Justin Woo committed
1 2 3 4 5 6 7 8 9 10 11 12
function _cloneRegex(r) {
  return new RegExp(r.source, r.flags);
}
function _getRegexLastIndex(r) {
  return r.lastIndex;
}
function _execRegex(r, s) {
  return r.exec(s);
}
exports._cloneRegex = _cloneRegex;
exports._getRegexLastIndex = _getRegexLastIndex;
exports._execRegex = _execRegex;