module Roda::RodaPlugins::HeaderMatchers::RequestMethods

def match_user_agent(pattern)

regexp match groups.
Match the submitted user agent to the given pattern, capturing any
def match_user_agent(pattern)
  if (user_agent = @env["HTTP_USER_AGENT"]) && user_agent.to_s =~ pattern
    @captures.concat($~[1..-1])
  end
end