routes as $priority) { foreach($priority as $route_regex => $route_destination) { if($found === false) { $regex = str_replace("/", "\/", $route_regex); if(preg_match("/{$regex}/i", $requestpath, $matches)) { $this->uParameters = $matches; include($route_destination); $found = true; } } } } } } ?>