org.scalatra.RegexPathPatternParser
This parser gradually builds a regular expression. Some intermediate strings are not valid regexes, so we wait to compile until the end.
(Since version 2.8.0) use productIterator instead
This parser gradually builds a regular expression. Some intermediate strings are not valid regexes, so we wait to compile until the end.