def peek_params(string)
      match = peek_match(string)
      [params(captures: match), match.to_s.size] if match
    end
def peek_params(string)
      match = peek_match(string)
      [params(captures: match), match.to_s.size] if match
    end
Tries to match the pattern against the beginning of the string (as opposed to the full string).
 Will return a two element Array with the params parsed from the substring as first entry and the length of
 the substring as second.

 @example
   pattern   = Mustermann.new('/:name')
   params, _ = pattern.peek_params("/Frank/Sinatra")

   puts "Hello, #{params['name']}!" # Hello, Frank!

 @param [String] string The string to match against
 @return [Array<Hash, Integer>, nil] Array with params hash and length of substing if matched, nil otherwise