mIRC Home    About    Download    Register    News    Help

Print Thread
#144901 16/03/06 01:35 AM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
hello

can you tell me please about wildcards in mirc?

a character can be:

1)letter = a,b,c,d,... (all 24 of english alphabet)
2)digit = 0,1,2,3,... (all natural numbers)
3)symbol = !@#$%^&*(){}[]:";',./<>?\|`~
4)space

how can I use a wildcard to represent each of the above? I want to represent the occurance of

1)one letter (any letter)
2)one digit (any digit)
3)one symbol (any symbol)
4)zero or more letters
5)zero or more digits
6)zero or more symbols

I already know that

* = zero or more characters (letter, digit, symbol, space)
? = one character (letter, digit, symbol, space)

what about the others above?

another thing I d like to ask is in which sections are wildcards permitted in mirc and in which not

thanks

#144902 16/03/06 01:43 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
There are 26 letters in the English alphabet.

You can't use mIRC wildcards to match those specific things.

Depending on what you're trying to do, you may be able to use Regular Expressions instead.

#144903 16/03/06 05:02 AM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
thanks

can I use regex in ignore list?

lets say I want to ignore nicknames that beging with a, end in c and consist of 3 characters

#144904 22/03/06 01:28 PM
Joined: May 2004
Posts: 38
Ameglian cow
Offline
Ameglian cow
Joined: May 2004
Posts: 38
I dont know regex well. Take this as an idea, and not as something you should trust to do what you want.
This will ignore 3 character nicknames that begin with a and end in c......BUT DOES NOT CONSIDER ANY CHARACTERS besides a-z and 1-9. I dont know how to check for the other chars /shrug

ON ^*:TEXT:*:*:{
if ($regex($nick,[Aa][Aa-zZ0-9][Cc])) {
ignore $nick
close -m $nick
halt
}
}

Last edited by anus; 22/03/06 01:29 PM.

Link Copied to Clipboard