Lines Matching refs:wanted_re
1413 $wanted_re = preg_replace('/\r\n/',"\n",$wanted);
1419 $length = strlen($wanted_re);
1421 $start = strpos($wanted_re, $r, $startOffset);
1424 $end = strpos($wanted_re, $r, $start+2);
1434 $temp = $temp . preg_quote(substr($wanted_re, $startOffset, ($start - $startOffset)), '/');
1437 $temp = $temp . '(' . substr($wanted_re, $start+2, ($end - $start-2)). ')';
1441 $wanted_re = $temp;
1443 $wanted_re = str_replace(
1446 $wanted_re
1448 $wanted_re = str_replace(
1451 $wanted_re
1453 $wanted_re = str_replace(
1456 $wanted_re
1458 $wanted_re = str_replace(
1461 $wanted_re
1464 $wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
1465 $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
1466 $wanted_re = str_replace('%S', '[^\r\n]*', $wanted_re);
1467 $wanted_re = str_replace('%a', '.+', $wanted_re);
1468 $wanted_re = str_replace('%A', '.*', $wanted_re);
1469 $wanted_re = str_replace('%w', '\s*', $wanted_re);
1470 $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
1471 $wanted_re = str_replace('%d', '\d+', $wanted_re);
1472 $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
1473 $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re);
1474 $wanted_re = str_replace('%c', '.', $wanted_re);
1483 $failed = !preg_match("/^$wanted_re\$/s", $output);