Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python正则表达式查找包含希腊文本的c#样式字符串_C#_Python_Regex - Fatal编程技术网

Python正则表达式查找包含希腊文本的c#样式字符串

Python正则表达式查找包含希腊文本的c#样式字符串,c#,python,regex,C#,Python,Regex,我正在开发一个python脚本来查找.cs代码文件中包含希腊字母的c#字符串。我使用的正则表达式是: \"(?:[^\"\\]+|\\.)*[Ά-ϛ](?:[^\"\\]+|\\.)*\" 对于在线正则表达式调试器,它的性能很好,但在脚本中使用时,它会导致回溯代码暂停。我怎样才能改善这个regex上的我如何改善这个regex上的我如何改善这个regex上的我如何改善这个regex上的我如何改善这个regex上的我移除内部的内部的去除去除内部的内部的>

我正在开发一个python脚本来查找.cs代码文件中包含希腊字母的c#字符串。我使用的正则表达式是:

\"(?:[^\"\\]+|\\.)*[Ά-ϛ](?:[^\"\\]+|\\.)*\"

对于在线正则表达式调试器,它的性能很好,但在脚本中使用时,它会导致回溯代码暂停。我怎样才能改善这个regex上的我如何改善这个regex上的我如何改善这个regex上的我如何改善这个regex上的我如何改善这个regex上的我

移除内部的内部的去除<<代码>

移除内部的内部的<<代码>

p>p>去除内部的内部的<<代码>

>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<代码>::::::::::::::::::::::::::::::::Ά-ϛ](?:[^\“\\]\\)*”,或像
“[^\”\]*(?:\\)一样展开它。[^\“\\]*)*[Ά-ϛ][^\“\]*(?:\\.\.^\“\]*)*“