I have written this regex but this is not working as expected.
((?:[A-Z][\w]+)?),[\s]([A-Z]{2})
Following are sample inputs.
Fort Worth, TX
This is Forth Worth, TX
We are looking for someone from Columbus, MS.
I expect City and State out of above string samples with regex in python but this is just no working as expected.
print re.findall('((?:[A-Z][\w]+){1,2}),[\s]([A-Z]{2})', input)
What am I missing?