Lines Matching refs:re
429 let re = ''
467 re += star
471 re += qmark
475 re += '\\' + stateChar
478 this.debug('clearStateChar %j %j', stateChar, re)
484 this.debug('%s\t%s %s %j', pattern, i, re, c)
494 re += '\\'
496 re += c
510 re += c
525 this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c)
532 re += c
550 re += '('
555 re += '\\('
562 reStart: re.length,
569 re += plEntry.open
573 re += subPatternStart(pattern.slice(i + 1))
575 this.debug('plType %j %j', stateChar, re)
583 re += '\\)'
594 re += pl.close
596 negativeLists.push(Object.assign(pl, { reEnd: re.length }))
604 re += '\\|'
609 re += '|'
613 re += subPatternStart(pattern.slice(i + 1))
624 re += '\\' + c
630 reClassStart = re.length
631 re += c
640 re += '\\' + c
655 re += c
659 re = re.substring(0, reClassStart) + '(?:$.)' // match nothing ever
670 re += '\\'
673 re += c
688 re = re.substring(0, reClassStart) + '\\[' + sp[0]
700 tail = re.slice(pl.reStart + pl.open.length)
701 this.debug('setting tail', re, pl)
719 this.debug('tail=%j\n %s', tail, tail, pl, re)
725 re = re.slice(0, pl.reStart) + t + '\\(' + tail
732 re += '\\\\'
737 const addPatternStart = addPatternStartSet[re.charAt(0)]
747 const nlBefore = re.slice(0, nl.reStart)
748 const nlFirst = re.slice(nl.reStart, nl.reEnd - 8)
749 let nlAfter = re.slice(nl.reEnd)
750 const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter
765 re = nlBefore + nlFirst + nlAfter + dollar + nlLast
771 if (re !== '' && hasMagic) {
772 re = '(?=.)' + re
776 re = patternStart() + re
781 return [re, hasMagic]
798 return Object.assign(new RegExp('^' + re + '$', flags), {
800 _src: re,
839 let re = set.map(pattern => {
872 re = '^(?:' + re + ')$'
875 if (this.negate) re = '^(?!' + re + ').*$'
878 this.regexp = new RegExp(re, flags)