[EMAIL PROTECTED] (¨ì©³¦b²Ö¤°»ò°Ú¡H) wrote: > >¡° [EMAIL PROTECTED] (Peter Otten)¡n¤§»Ê¨¥¡G >> ¨ì©³¦b²Ö¤°»ò°Ú¡H wrote: >> > Thanks a lot! I have never thought of that. >> > But what if there's not only commas, but also periods and semicolons? I >> > want to find words between 2 near by punctuations. I think it would make >> > it difficult to use split instead of regular expression. >> Reenter re. Use >> re.split(r"[.;\-,]", my_string) >> instead of my_string.split(","). >> Peter > >Thank you for your help. >-- >[1;30;40m¤Ò§LªÌ¤£²»¤§¾¹ª«©Î´c¤§¬G¦³¹DªÌ¤£³B§g¤l©~«h¶Q¥ª¥Î§L«h¶Q¥k§LªÌ¤£²»¤§¾¹«D§g¤l[m >[1;30m¤§¾¹¤£±o¤w[37m[30m¦Ó¥Î¤§«ï²H¬°¤W³Ó¦Ó¤£¬ü¦Ó¬ü¤§ªÌ¬O¼Ö±þ¤H¤Ò¼Ö±þ¤HªÌ«h¤£¥i±o§Ó©ó¤Ñ¤U >[m[1;30m¨o¦N¨Æ©|¥ª¤¿¨Æ©|¥k°¾±Nx©~¥ª¤W±Nx©~¥k¨¥¥H³à§³B¤§±þ¤H¤§²³¥H«s´dª_¤§¾Ô³Ó¥H[m >[1;30m³à§³B¤§¹D±`[37mµL¦W[30m¾ëÁö¤p¤Ñ¤U²ö¯à¦Ú«J¤ýY¯à¦u¤§¸Uª«±N¦Û»«¤Ñ¦a¬Û¦X¥H°¥ÌÅS¥Á²ö[m >[1;30m¤§¥O¦Ó¦Û§¡©l¨î¦³¦W¦W¥ç¬J¦³¤Ò¥ç±Nª¾[37m210-64-83-167.adsl.dynamic.seed.net.tw[30m®ü[m
What is your signature supposed to be? It looks like you are trying to inject ANSI terminal escape sequences. The vast majority of Usenet participants are now reading these articles through GUI newsreaders or web-based readers which show this as 5 lines of unrecognizable line noise. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list