The regexp you've specified here will match as long as there are at
least two consecutive non-space characters. The only way I can think
of to do what you're looking for would be to add a route preceding
this one which matches any :plan WITH a space, and routes it to an
error page. EG:
The regexp you've specified here will match as long as there are at
least two consecutive non-space characters.
I would have thought so, but the routing docs suggest that the regex is
implicitly anchored at both ends (look at the postalcode example).
The only way I can think
of to do what you're looking for would be to add a route preceding
this one which matches any :plan WITH a space, and routes it to an
error page.