User talk:R. Hillgentleman/kwokYue.py
C:\Python25\pywikipedia1\pywikipedia>kwokYue7.py Checked for running processes. 1 processes currently running, including the curr ent process. Traceback (most recent call last): File "C:\Python25\pywikipedia1\pywikipedia\kwokYue7.py", line 18, in <module> si = re.compile(ur'(?<!銆妡|"銆寍鈥渱)[\u3400-\u2FA1D]*(?<!鐐簗鍦媩鏂?鏄??! 浣唡闈瀨鐐簗鏁?[\u3400-\u2FA1D]*(?!銆媩锛倈銆峾鈥?') #鑷互鐐烘槸 - must (?) m atch fixed length File "C:\Python25\lib\re.py", line 180, in compile return _compile(pattern, flags) File "C:\Python25\lib\re.py", line 233, in _compile raise error, v # invalid expression sre_constants.error: bad character range C:\Python25\pywikipedia1\pywikipedia>
- "sre_constants.error: bad character range"
-點搞啲中文嘅range?[1]似乎有問題。。。2007年10月25號 (四) 03:23 (UTC)
- 試下分5節,唔好一節過。。。
CJK Unified Ideographs Extension A (U+3400 through U+4DB5)
CJK Unified Ideographs (U+4E00 through U+9FA5)
CJK Compatibility Ideographs (U+F900 through U+FA2D)
CJK Unified Ideographs Extension B (U+20000 through U+2A6D6)
CJK Compatibility Ideographs Supplement (U+2F800 through U+2FA1D)
[\u3400-\u4DB5\u4E00-\u9FA5\uF900-\uFA2D\u20000-\u2A6D6\u2F800-\u2FA1D]*
- seems to work...行唔通
try: (?<!「.*)(?<!為|國|於)是(?!但|非|為|故)(?!(.*」))