mIRC Homepage
Posted By: Teazle if operators - 09/06/04 08:04 PM
perhaps add a case-sensitive iswm? like iswmcs.
Posted By: FiberOPtics Re: if operators - 09/06/04 09:07 PM
Hi,

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

[Deleted: check the solution by qwerty]

Posted By: qwerty Re: if operators - 09/06/04 10:25 PM
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)
Posted By: FiberOPtics Re: if operators - 09/06/04 10:29 PM
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.
© mIRC Discussion Forums