Extract string from between quotations
>>> import re >>> re.findall(‘”([^”]*)”‘, ‘SetVariables “a” “b” “c” ‘) [‘a’, ‘b’, ‘c’]
>>> import re >>> re.findall(‘”([^”]*)”‘, ‘SetVariables “a” “b” “c” ‘) [‘a’, ‘b’, ‘c’]
They are equivalent. There is no difference in their usage. You can employ this to print one of the quotation characters: print *, “‘” print *, ‘”‘ prints first ‘ and then “. Note: You can also use two quote characters in a row to print one: print *, “””” print *, ”” prints first … Read more