I’m working on a Project Euler problem (for fun).
It comes with a 46kb txt file containing 1 line with a list of over 5000 names in the format like this:
"MARIA","SUSAN","ANGELA","JACK"...
My plan is to write a method to extract every name and append them into a Python list. Is regular expression the best weapon to tackle this problem?
I looked up the Python re doc, but am having hard time figuring out the right regex.
If the format of the file is as you say it is, i.e.
Then this should work: