Lines Matching refs:wanted_re
1426 $wanted_re = preg_replace('/\r\n/',"\n",$wanted);
1432 $length = strlen($wanted_re);
1434 $start = strpos($wanted_re, $r, $startOffset);
1437 $end = strpos($wanted_re, $r, $start+2);
1447 $temp = $temp . preg_quote(substr($wanted_re, $startOffset, ($start - $startOffset)), '/');
1450 $temp = $temp . '(' . substr($wanted_re, $start+2, ($end - $start-2)). ')';
1454 $wanted_re = $temp;
1456 $wanted_re = str_replace(
1459 $wanted_re
1461 $wanted_re = str_replace(
1464 $wanted_re
1466 $wanted_re = str_replace(
1469 $wanted_re
1471 $wanted_re = str_replace(
1474 $wanted_re
1477 $wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
1478 $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
1479 $wanted_re = str_replace('%S', '[^\r\n]*', $wanted_re);
1480 $wanted_re = str_replace('%a', '.+', $wanted_re);
1481 $wanted_re = str_replace('%A', '.*', $wanted_re);
1482 $wanted_re = str_replace('%w', '\s*', $wanted_re);
1483 $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
1484 $wanted_re = str_replace('%d', '\d+', $wanted_re);
1485 $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
1486 $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re);
1487 $wanted_re = str_replace('%c', '.', $wanted_re);
1496 $failed = !preg_match("/^$wanted_re\$/s", $output);