How to match this kind of color text? #93
hairui
started this conversation in
Script help
Replies: 2 comments 4 replies
-
I know i can write a script such as : |
Beta Was this translation helpful? Give feedback.
0 replies
-
This seems to work for me:
#list explode requires the latest version to work properly. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While scripting bots in PKUXKX, I met with a color text to trigger,which looked like:
\e[44;1m\e[1;37m尚\e[44;1m\e[1;37m春\e[44;1m\e[1;37m伤\e[44;1m\e[1;37m弟\e[44;1m\e[1;37m肉\e[44;1m\e[1;37m道\e[42;1m\e[1;37m论\e[42;1m\e[1;37m灯\e[46;1m\e[1;37m竹\e[42;1m\e[1;37m逍\e[43;1m\e[1;37m营\e[2;37;0m
I wrote a script to match the text. like :
`
#class {CT} {kill};
#class {CT} {open};
#alias kys {#config {convert meta} on}
#alias bkys {#config {convert meta} off}
#debug act on;
#act {~\e[{\d{2}};1m\e[1;37m{\W+}} {
#showme %1 %2;
#echo %0;
};
#class {CT} {close};
`
It's result:
`
#DEBUG ACTION {~\e[{\d{2}};1m\e[1;37m{\W+}}
44 尚
尚
`
The action just matched the first appearance of the color Chinese character. But what I need is to get each character and its backgroud color.
So what should I do? Any help would be much appreciated
Beta Was this translation helpful? Give feedback.
All reactions