module CaptureHelper
Capture helper - regexen.
Constants
- COLLECTION_AND_ID
- COLLECTION_ONLY
These start with optional everythingm followed bu slash-separated matches
- MATCH_NONSLASH
Seems evil but it works. :-( these do pattern matching. They parse out what they say they do while allowing ANY prefix. So localhost/v3/myserver/route/id works just like
http://localhost/route/id
Because this seems wrong, I'm leaving it notably ugly so that I'll notice and maybe improve it later.
- MATCH_NUMBER