looking for a regular expression
Tim Roberts
timr at probo.com
Sat Aug 5 20:00:37 EDT 2006
"alex23" <wuwei23 at gmail.com> wrote:
>Tim Roberts wrote:
>> 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.
>
>It renders as (I'm guessing) Chinese through Firefox on an XP box with
>East Asian Languages enabled. If you really want to see this the way
>it's intended, then check out:
>http://en.wikipedia.org/wiki/Wikipedia:Enabling_East_Asian_characters
>
>"The vast majority" of Usenet participants who need it will most likely
>already have it. Try not to extrapolate too wildly from your individual
>& clearly experiential evidence.
No, it's more than that. I recognized that most of the string was intended
to be Chinese, but there are ANSI terminal escape sequences sprinkled
through there. Look at the start of the first line: "<esc>[1;30;40;m". No
GUI app is going to render that.
>[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
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list