How can I extract the groups from this regex from a file object (data.txt)?
import numpy as np import re import os ifile = open(\"data.txt\",\'r\') # Regex
You can read the data from the file object into a string with ifile.read()
ifile.read()