							var match = pattern.exec(str),
								    delNum = 1;

								// Greedy patterns can override/remove up to two previously matched tokens
								if (!match && greedy && i != strarr.length - 1) {
									pattern.lastIndex = pos;
									match = pattern.exec(text);
									if (!match) {
										break;
									}

									var from = match.index + (lookbehind ? match[1].length : 0),
									    to = match.index + match[0].length,
									    k = i,
									    p = pos;

									for (var len =