'This matches comments and all kinds of quoted strings but does
NOT match comments (#...) within quoted strings. (trust me)'

@lazy_attribute
def re_pytokens(cls):

    return re.compile('\n                                                (\'\'(?!\')|""(?!")|\'{6}|"{6}                #    Empty    strings    (all    4    types)\n                                                    |\'(?:[^\\\\\']|\\\\.)+?\'                                        #    Single    quotes    (\')\n                                                    |"(?:[^\\\\"]|\\\\.)+?"                                        #    Double    quotes    (")\n                                                    |\'{3}(?:[^\\\\]|\\\\.|\\n)+?\'{3}        #    Triple-quoted    strings    (\')\n                                                    |"{3}(?:[^\\\\]|\\\\.|\\n)+?"{3}        #    Triple-quoted    strings    (")\n                                                    |\\#.*                                                                                                #    Comments\n                                                )', re.VERBOSE)
