Clumsy implementation for parsing patterns from file name and query string