diff --git a/flight/net/Router.php b/flight/net/Router.php index 26f8e84..2d4d454 100644 --- a/flight/net/Router.php +++ b/flight/net/Router.php @@ -35,6 +35,13 @@ class Router { */ public $params = array(); + /** + * Matching regular expression. + * + * @var string + */ + public $regex = null; + /** * Gets mapped routes. * @@ -116,6 +123,7 @@ class Router { } $this->matched = $pattern; + $this->regex = $regex; return true; }