{"action":"created","issue":{"url":"https://api.github.com/repos/bsiddiqui/hapi-router/issues/17","labels_url":"https://api.github.com/repos/bsiddiqui/hapi-router/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/bsiddiqui/hapi-router/issues/17/comments","events_url":"https://api.github.com/repos/bsiddiqui/hapi-router/issues/17/events","html_url":"https://github.com/bsiddiqui/hapi-router/issues/17","id":123997589,"number":17,"title":"Trying a Regex pattern in a route","user":{"login":"jhyland87","id":5976891,"avatar_url":"https://avatars.githubusercontent.com/u/5976891?v=3","gravatar_id":"","url":"https://api.github.com/users/jhyland87","html_url":"https://github.com/jhyland87","followers_url":"https://api.github.com/users/jhyland87/followers","following_url":"https://api.github.com/users/jhyland87/following{/other_user}","gists_url":"https://api.github.com/users/jhyland87/gists{/gist_id}","starred_url":"https://api.github.com/users/jhyland87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhyland87/subscriptions","organizations_url":"https://api.github.com/users/jhyland87/orgs","repos_url":"https://api.github.com/users/jhyland87/repos","events_url":"https://api.github.com/users/jhyland87/events{/privacy}","received_events_url":"https://api.github.com/users/jhyland87/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-27T21:45:41Z","updated_at":"2015-12-27T21:48:36Z","closed_at":"2015-12-27T21:48:36Z","body":"Can you maybe put an example of using a regex pattern in the routes? I see in the bottom of the README, theres a list of regex pattern examples and what they mean, but when I try something, I get an error.\r\n\r\nIf I set `path` to `'/foo/(a|b)'`, I get the error:\r\n> Error: Invalid path: /foo/(a|b)\r\n\r\nIf I try to use a real regex pattern, such as: `%/foo/(a|b)%`, I get another error:\r\n> [1] \"path\" must be a string"},"comment":{"url":"https://api.github.com/repos/bsiddiqui/hapi-router/issues/comments/167443646","html_url":"https://github.com/bsiddiqui/hapi-router/issues/17#issuecomment-167443646","issue_url":"https://api.github.com/repos/bsiddiqui/hapi-router/issues/17","id":167443646,"user":{"login":"jhyland87","id":5976891,"avatar_url":"https://avatars.githubusercontent.com/u/5976891?v=3","gravatar_id":"","url":"https://api.github.com/users/jhyland87","html_url":"https://github.com/jhyland87","followers_url":"https://api.github.com/users/jhyland87/followers","following_url":"https://api.github.com/users/jhyland87/following{/other_user}","gists_url":"https://api.github.com/users/jhyland87/gists{/gist_id}","starred_url":"https://api.github.com/users/jhyland87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhyland87/subscriptions","organizations_url":"https://api.github.com/users/jhyland87/orgs","repos_url":"https://api.github.com/users/jhyland87/repos","events_url":"https://api.github.com/users/jhyland87/events{/privacy}","received_events_url":"https://api.github.com/users/jhyland87/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T21:48:36Z","updated_at":"2015-12-27T21:48:36Z","body":"Nevermind, got my answer in IRC. Regex isnt supported :( \r\n\r\nThe regex in the readme is for globbing, not routes. "}}