I am trying to find out who many words or set of words are enclosed either in single quotes or double quotes.
I tested it using the below regex pattern for double quotes. However, the issue remains same, even if I have a word starting with single double quote and ending with two double quotes, it is giving me the output value. I am expecting other than enclosed with two double quotes for each word what ever extra quotes are there should find as I have to remove those extra quotes.
f = '"country id"" "state id"'
print(re.findall('^".*["\s"][a-z].*"$',f))