-8
怎样把这个Perl的正则表达式成Python:如何将Perl正则表达式转换为Python?
(?:
^(?:never|no|nothing|nowhere|noone|none|not|
havent|hasnt|hadnt|cant|couldnt|shouldnt|
wont|wouldnt|dont|doesnt|didnt|isnt|arent|aint
)$
)
|
n't
转到http://pythex.org并测试了正则表达式。这是找出你的正则表达式的特定语法是否有效的最快方法。 – idjaw