def extractVector(vectorFile):
    ' Function is using regular expression select Vector value out\n\t\n\tArgs:\n\tUFile: The directory path of file: U\n\n\tReturns:\n\tresMid: the U as (Ux1,Uy1,Uz1);(Ux2,Uy2,Uz2);........\n\t'
    fin = open(vectorFile, 'r')
    line = fin.read()
    fin.close()
    patternMid = re.compile('\n\t(\n\t\\(                                                   # match(\n\t[\\+\\-]?[\\d]+([\\.][\\d]*)?([Ee][+-]?[\\d]+)?            # match figures\n\t(\\ )                                                 # match space\n\t[\\+\\-]?[\\d]+([\\.][\\d]*)?([Ee][+-]?[\\d]+)?            # match figures\n\t(\\ )                                                 # match space\n\t[\\+\\-]?[\\d]+([\\.][\\d]*)?([Ee][+-]?[\\d]+)?            # match figures\n\t\\)                                                   # match )\n\t\\n                                                   # match next line\n\t)+                                                   # search greedly\n\t', (re.DOTALL | re.VERBOSE))
    resMid = patternMid.search(line)
    return resMid
Function is using regular expression select Vector value out

Args:
UFile: The directory path of file: U

Returns:
resMid: the U as (Ux1,Uy1,Uz1);(Ux2,Uy2,Uz2);........
def extractVector(vectorFile):
    ' Function is using regular expression select Vector value out\n\t\n\tArgs:\n\tUFile: The directory path of file: U\n\n\tReturns:\n\tresMid: the U as (Ux1,Uy1,Uz1);(Ux2,Uy2,Uz2);........\n\t'
    fin = open(vectorFile, 'r')
    line = fin.read()
    fin.close()
    patternMid = re.compile('\n\t(\n\t\\(                                                   # match(\n\t[\\+\\-]?[\\d]+([\\.][\\d]*)?([Ee][+-]?[\\d]+)?            # match figures\n\t(\\ )                                                 # match space\n\t[\\+\\-]?[\\d]+([\\.][\\d]*)?([Ee][+-]?[\\d]+)?            # match figures\n\t(\\ )                                                 # match space\n\t[\\+\\-]?[\\d]+([\\.][\\d]*)?([Ee][+-]?[\\d]+)?            # match figures\n\t\\)                                                   # match )\n\t\\n                                                   # match next line\n\t)+                                                   # search greedly\n\t', (re.DOTALL | re.VERBOSE))
    resMid = patternMid.search(line)
    return resMid