def check_user_agent
    if api_access?
      regex = Regexp.new("^([^/[:space:]]*)(/([^[:space:]]*))?([[:space:]]*\[[a-zA-Z][a-zA-Z]\])?[[:space:]]*(\\((([^()]|(\\([^()]*\\)))*)\\))?[[:space:]]*")
...

Ruby warning: character class ha...

by Jörg, February 16, 2009 01:27, 2 refactorings, tagged with regex, warning

Hola guys.. I am somewhat l...

854e9287641aae13c1045bc7df24bfbf Talk