@@ 466-472 (lines=7) @@ | ||
463 | $quoted = str_replace('/'.Symbol::STAR.Symbol::STAR.'/', '/(.+/)?', $quoted); |
|
464 | ||
465 | // Replace "*" by "[^/]*", as long as preceded by an even number of backslashes |
|
466 | if (false !== strpos($quoted, Symbol::STAR)) { |
|
467 | $quoted = preg_replace( |
|
468 | '~'.$noEscaping.Symbol::E_STAR.'~', |
|
469 | '$1[^/]*', |
|
470 | $quoted |
|
471 | ); |
|
472 | } |
|
473 | ||
474 | // Replace "?" by ".", as long as preceded by an even number of backslashes |
|
475 | if (false !== strpos($quoted, Symbol::QUESTION_MARK)) { |
|
@@ 475-481 (lines=7) @@ | ||
472 | } |
|
473 | ||
474 | // Replace "?" by ".", as long as preceded by an even number of backslashes |
|
475 | if (false !== strpos($quoted, Symbol::QUESTION_MARK)) { |
|
476 | $quoted = preg_replace( |
|
477 | '~'.$noEscaping.Symbol::E_QUESTION_MARK.'~', |
|
478 | '$1.', |
|
479 | $quoted |
|
480 | ); |
|
481 | } |
|
482 | ||
483 | return str_replace( |
|
484 | // Replace "\*" by "*" |