code: def extract_version(value)
        value = value.to_s.split('|')[0] if value.to_s.include? '|'
        regexp_to_match = /\d{1,}/
        if (not regexp_to_match.match(value).nil?)
          version = regexp_to_match.match(value)[0]
        else
          version = ''
        end
        version
      end
docs: Extracts version from browser string
  
   @example
     extract_version(:'safari5|linux|iphone') will extract
   browser = safari
  
   @param  [String] the browser string passed into the method
   @return [String] the version value