In Padrino, if I want a single route to match the following urls:
- "/does/not/work/for/some.reason"
- "/does/not/work/for/some.bizarre.reason"
How would I do that? I.e. the last part of the url can have an arbitrarily number of periods in it, and I want that to be one of the parameters.
I tried doing the following, but the route would not match
- get '/does/not/work/for/:name' do
- get '/does/not/work/for/*splat' do
However, if I changed the periods to an underscore like "/does/note/work/for/some_reason" they work fine.
Also, if I do the following:
- "/does/not/work/for/some.bizarre.reason/info"
then both
- get '/does/not/work/for/:name/info'
- get '/does/not/work/for/*splat/info'
match fine...
Am I missing something?