def findSubscriptValue(inputLine):
  """
    Seperate the subscript part vs value part of the global line
    ^DD(0,"IX",5)="1^^3^7" should return
    [0, IX, 5], 1^^3^7, ^DD
  """
  start = inputLine.find("(")
  if start <= 0:
    return None, None, inputLine
  if start == len(inputLine) - 1:
    return None, None, inputLine[:-1]
  pos = inputLine.find(")=\"")
  if pos > start+1:
    nodeIndex = [x.strip('"') for x in inputLine[start+1:pos].split(",")]
    nodeValue = inputLine[pos+3:-1]
    return nodeIndex, nodeValue, inputLine[:start]
  else:
    nodeIndex = [x.strip('"') for x in inputLine[start+1:].split(",")]
    return nodeIndex, None, inputLine[:start]