mIRC Home    About    Download    Register    News    Help

Print Thread
Remove parenthesis #259534 17/12/16 10:42 PM
Joined: Dec 2016
Posts: 2
I
intel233 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Dec 2016
Posts: 2
I am trying to echo something that is in parenthesis. How can I do that? ex. (TV) just to TV
I tried something like $remove($2,(,)) ) } }
but that isn't working.

Re: Remove parenthesis [Re: intel233] #259535 18/12/16 02:21 AM
Joined: Oct 2015
Posts: 112
B
Blas Offline
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2015
Posts: 112
Basically, mIRC is thinking that the ( and ) are part of it's scripting language. You need to tell it that's it not by using the ascii characters for the text instead.

Code:
$remove($2,$chr(40),$chr(41))


See http://www.roubaixinteractive.com/PlayGround/Binary_Conversion/The_Characters.asp

Re: Remove parenthesis [Re: Blas] #259595 31/12/16 04:46 PM
Joined: Dec 2016
Posts: 2
I
intel233 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Dec 2016
Posts: 2
Thanks for the help but I am getting * Invalid format: $strip

This is what I have:

$strip($3,$chr(40),$chr(41) $remove($2,$chr(40),$chr(41) ) ) ) ) } }
I am trying to echo
(PRE)(TV)(Gossip.Girl.S01E03.Wie.du.mir.so.ich.Dir.German.DUBBED.DL.1080p.WebHD.x264-FKKTV)
To be Gossip.Girl.S01E03.Wie.du.mir.so.ich.Dir.German.DUBBED.DL.1080p.WebHD.x264-FKKTV TV

Last edited by intel233; 31/12/16 05:45 PM.
Re: Remove parenthesis [Re: intel233] #259596 31/12/16 09:18 PM
Joined: Oct 2015
Posts: 112
B
Blas Offline
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2015
Posts: 112
Your $strip command looks like a mess. Try typing /help $strip in mIRC for the correct usage. Also, you have too many brackets on it.

You are asking to do something very specific. There are many ways to accomplish what you want, but the best/easiest way depends on what exactly you are trying to accomplish.

It seems like you want text like (PRE) and (TV) removed, you can try /help $remove for an easier way to do this or try /help $regex for a more complicated and advanced way.