-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