app/lib/parsers/generic_line_parser.rb
# frozen_string_literal: true
module Parsers
class GenericLineParser
GENERIC_SAMPLE =
'\t(\d{8})(\w+)-?(\d+)?-?[abc|ABC]?\s*(?: rerun)*\t\s+-*\d+\s+(-*\d+\.\d+)\t.*\t *-*\d+\t\s*(-*\d+\.\d+)'
def self.parse(line)
ParserMatcher.parse(GENERIC_SAMPLE, line)
end
end
end