mIRC Home    About    Download    Register    News    Help

Print Thread
#272103 09/10/23 09:46 PM
Joined: Jun 2022
Posts: 12
M
mexico Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jun 2022
Posts: 12
It is a notification message from the undernet X

how to remove this example: +#mexico (187), @#merida (499), +#TABASCO (499), #rusia (499)


output:
#mexico #merida #TABASCO #rusia

Joined: Jan 2012
Posts: 321
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 321
Please clarify after which command you get this line? Is this the "/whois" command?
Provide a sequential description of all the steps after which you receive this message:
Quote
+#mexico (187), @#merida (499), +#TABASCO (499), #rusia (499)

Do you want to replace this string so that another modified string is displayed instead (without prefixes and numbers in parentheses)?


🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Joined: Jul 2006
Posts: 4,180
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
regular expressions are typically useful in this case:

//var %text +#mexico (187), @#merida (499), +#TABASCO (499), #rusia (499) | echo -a $regsubex(%text,/[^#]*(#[^ ]+)( )\(\d+\)\x2c?/g,\1\2)


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jun 2022
Posts: 12
M
mexico Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jun 2022
Posts: 12
Wims thanks

Joined: Jun 2022
Posts: 12
M
mexico Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jun 2022
Posts: 12
no is for notify bot X undernet


Link Copied to Clipboard