解释为: --[\S \t]*?\n| Matches every comment line and "or" them out \"(?:[^"\\\n]|\\.|\\\n)*\" --- Matches single line strings with double quotes \'(?:[^'\\\n]|\\.|\\\n)*\' --- Matches single line strings with single quotes \[(?P<raised>=*)\[[\w\W]*?\](?P=raised)\] --- Matches multiline string, (?P<raised>=*) and (?P=raised) will ensure matching the same level of the brackets, i.e. [==[ will only match ]==].