is there a way in python to only take from a file a string in between certain characters? for example, if i have this in a file:
city state[long, lat]population
how can i take from the line just what is in between the brackets (that is, come up with [long, lat])? please help me. thank you!