mIRC Home    About    Download    Register    News    Help

Print Thread
#272934 15/10/24 02:03 PM
Joined: Jul 2014
Posts: 331
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 331
Hi guys,

I have this code:
Code
if ($regex($did(3).text,\A\s*\z)) { beep 1 | halt }

Which does not allow only spaces to be accepted within an edit box.
I needed to add one more condition. That does not accept spaces or just the / character on the left or both, and that only accepts: /command.

Can anyone help me?


TECO
irc.PTirc.org (Co-Admin)
TECO #272935 16/10/24 03:26 PM
Joined: Jul 2014
Posts: 331
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 331
I've already been helped.

What I wanted was this:
Code
if ($regex($did(3).text,\A[\s/]*\z)) { beep 1 | halt }


TECO
irc.PTirc.org (Co-Admin)

Link Copied to Clipboard