python regular expression not matching file contents with re.match and re.MULTILINE flag
问题 I'm reading in a file and storing its contents as a multiline string. Then I loop through some values I get from a django query to run regexes based on the query results values. My regex seems like it should be working, and works if I copy the values returned by the query, but for some reason isn't matching when all the parts are working together that ends like this My code is: with open("/path_to_my_file") as myfile: data=myfile.read() #read saved settings then write/overwrite them into the