What regex will find the triple quote comments (possibly multi-line) in a Python source code?
I don't know how well this will fair when scanning Python code, but this seems to match Python strings in isolation.
^(\"([^\"\n\\]|\\[abfnrtv?\"'\\0-7]|\\x[0-9a-fA-F])*\"|'([^'\n\\]|\\[abfnrtv?\"'\\0-7]|\\x[0-9a-fA-F])*'|\"\"\"((?!\"\"\")[^\\]|\\[abfnrtv?\"'\\0-7]|\\x[0-9a-fA-F])*\"\"\")$
The escaping is not standard Python; this is something that I cut-n-pasted from a project. See it in action at regex101.com.