def extractScalar(scalarFile):
    ' subFunction of readTurbStressFromFile\n\t\tUsing regular expression to select scalar value out \n\t\n\tArgs:\n\tscalarFile: The directory path of file of scalar\n\n\tReturns:\n\tresMid: scalar selected;\n\t\t\tyou need use resMid.group() to see the content.\n\t'
    fin = open(scalarFile, 'r')
    line = fin.read()
    fin.close()
    patternMid = re.compile('\n\t\t\\(                                                   # match"("\n\t\t\\n                                                   # match next line\n\t\t(\n\t\t[\\+\\-]?[\\d]+([\\.][\\d]*)?([Ee][+-]?[\\d]+)?            # match figures\n\t\t\\n                                                   # match next line\n\t\t)+                                                   # search greedly\n\t\t\\)                                                   # match")"\n\t', (re.DOTALL | re.VERBOSE))
    resMid = patternMid.search(line)
    return resMid
subFunction of readTurbStressFromFile
        Using regular expression to select scalar value out 

Args:
scalarFile: The directory path of file of scalar

Returns:
resMid: scalar selected;
                you need use resMid.group() to see the content.
def extractScalar(scalarFile):
    ' subFunction of readTurbStressFromFile\n\t\tUsing regular expression to select scalar value out \n\t\n\tArgs:\n\tscalarFile: The directory path of file of scalar\n\n\tReturns:\n\tresMid: scalar selected;\n\t\t\tyou need use resMid.group() to see the content.\n\t'
    fin = open(scalarFile, 'r')
    line = fin.read()
    fin.close()
    patternMid = re.compile('\n\t\t\\(                                                   # match"("\n\t\t\\n                                                   # match next line\n\t\t(\n\t\t[\\+\\-]?[\\d]+([\\.][\\d]*)?([Ee][+-]?[\\d]+)?            # match figures\n\t\t\\n                                                   # match next line\n\t\t)+                                                   # search greedly\n\t\t\\)                                                   # match")"\n\t', (re.DOTALL | re.VERBOSE))
    resMid = patternMid.search(line)
    return resMid