{"action":"opened","issue":{"url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/235","labels_url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/235/comments","events_url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/235/events","html_url":"https://github.com/simple-mvc-framework/framework/issues/235","id":121926230,"number":235,"title":"3.0 beta routes - catch all","user":{"login":"daveismyname","id":1018170,"avatar_url":"https://avatars.githubusercontent.com/u/1018170?v=3","gravatar_id":"","url":"https://api.github.com/users/daveismyname","html_url":"https://github.com/daveismyname","followers_url":"https://api.github.com/users/daveismyname/followers","following_url":"https://api.github.com/users/daveismyname/following{/other_user}","gists_url":"https://api.github.com/users/daveismyname/gists{/gist_id}","starred_url":"https://api.github.com/users/daveismyname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveismyname/subscriptions","organizations_url":"https://api.github.com/users/daveismyname/orgs","repos_url":"https://api.github.com/users/daveismyname/repos","events_url":"https://api.github.com/users/daveismyname/events{/privacy}","received_events_url":"https://api.github.com/users/daveismyname/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-13T15:49:05Z","updated_at":"2015-12-13T15:49:05Z","closed_at":null,"body":"@LuckyCyborg how do you create a catch all route?\r\n\r\nI have a CMS that I use a catch all to look at the requests, this is what I normally use:\r\n\r\n````\r\n//pass anything uncaught to pages\r\nRouter::any('(:all)', 'App\\Controllers\\Pages@fetch');\r\n````\r\n\r\nbut that fails to match if I add a . to the patten it almost matches but then removed the first letter of the match:\r\n\r\n````\r\n//pass anything uncaught to pages\r\nRouter::any('.(:all)', 'App\\Controllers\\Pages@fetch');\r\n````\r\n\r\nFor instance the url http://mvc:8888/cms/public/ok\r\n\r\nreturns The page 'k' cannot be found it's stripping out the first letter.\r\n\r\nI have a bunch of routes for the admin then this catch all to collect any requests that have not yet matched anything the idea is to pass that to a pages controller, then the controller loads up the correct section."}}