import re


def get_params(line):
  """
    Gets the parameters from a line.
    @ In, line, string, The line to parse
    @ Out, (name,params), (string,string or list), The name of the parameter
      and either a single parameter or a list of parameters.
  """
  start_match = re.search("\[\./([a-zA-Z_]+)\]",line)
  if start_match is not None:
    return "[./]",start_match.group(1)
  if " = " not in line:
    return None, None
  equalsIndex = line.index("=")
  name = line[:equalsIndex].strip()
  if line.rstrip().endswith('"'):
    params = line[equalsIndex + 1:].strip().strip('"').split()
    return name,params
  else:
    return name,line[equalsIndex + 1:].strip()