private function ApacheMatcherDumper::regexToApacheRegex in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/Matcher/Dumper/ApacheMatcherDumper.php \Symfony\Component\Routing\Matcher\Dumper\ApacheMatcherDumper::regexToApacheRegex()
Converts a regex to make it suitable for mod_rewrite.
Parameters
string $regex The regex:
Return value
string The converted regex
2 calls to ApacheMatcherDumper::regexToApacheRegex()
- ApacheMatcherDumper::dump in vendor/
symfony/ routing/ Matcher/ Dumper/ ApacheMatcherDumper.php - Dumps a set of Apache mod_rewrite rules.
- ApacheMatcherDumper::dumpRoute in vendor/
symfony/ routing/ Matcher/ Dumper/ ApacheMatcherDumper.php - Dumps a single route.
File
- vendor/
symfony/ routing/ Matcher/ Dumper/ ApacheMatcherDumper.php, line 217
Class
- ApacheMatcherDumper
- Dumps a set of Apache mod_rewrite rules.
Namespace
Symfony\Component\Routing\Matcher\DumperCode
private function regexToApacheRegex($regex) {
$regexPatternEnd = strrpos($regex, $regex[0]);
return preg_replace('/\\?P<.+?>/', '', substr($regex, 1, $regexPatternEnd - 1));
}