mIRC Home    About    Download    Register    News    Help

Print Thread
#86178 09/06/04 08:04 PM
Joined: Apr 2003
Posts: 18
T
Teazle Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Apr 2003
Posts: 18
perhaps add a case-sensitive iswm? like iswmcs.


Teazle
#help.script - QuakeNet
#86179 09/06/04 09:07 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

good suggestion seeing as there is a isincs, why not a iswmcs?

[Deleted: check the solution by qwerty]


Last edited by FiberOPtics; 09/06/04 10:43 PM.

Gone.
#86180 09/06/04 10:25 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Just replacing * with .* (or with .*? for that matter) isn't enough. You also need to escape all regex special chars. To see what I mean, try this: //echo -a $iswmcs(bl[a]h,*l[a]*)

Here's a simpler (and faster than a regex) alternative:
Code:
alias iswmcs return $wildtokcs($1,$2,0,0)


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#86181 09/06/04 10:29 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
WOW! This is a huge coincidence...I was testing the script and then it came upon me that indeed, the special chars need to be evaded. I edit my post, and right when I click submit, i get an email, with your post.

Oh well smile

Greets

Btw first I thought of using $wildtokcs, but didn't work out for me (with 32 as delimiter). I've never seen the ascii 0 as a delimiter. What does this do exactly? So you can use "nothing" as a delimiter? Interesting...that can be handy in certain situations.

Last edited by FiberOPtics; 09/06/04 10:47 PM.

Gone.

Link Copied to Clipboard