y) {
										continue;
									}

									// Number of tokens to delete and replace with the new match
									delNum = k - i;
									str = text.slice(pos, p);
									match.index -= pos;
								}

								if (!match) {
									continue;
								}

								if(lookbehind) {
									lookbehindLength = match[1].length;
								}

								var from = match.index + lookbehindLength,
								    match = match[0].slice(lookbehindLength),
								    to = from + match.length,
								    before = str.slic