import re


def _parse_uci_regression_dataset(name_str):
  """Parse name and seed for uci regression data.

  E.g. yacht_2 is the yacht dataset with seed 2.
  """
  pattern_string = "(?P<name>[a-z]+)_(?P<seed>[0-9]+)"
  pattern = re.compile(pattern_string)
  matched = pattern.match(name_str)
  if matched:
    name = matched.group("name")
    seed = matched.group("seed")
    return name, seed
  return None, None