r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  Bitchbot  |  Topic: Host mask
Pages: [1]
Print
Author Topic: Host mask  (Read 9280 times)
Prince
Member

Posts: 1


« on: July 23, 2007, 09:40:52 pm »

I have my host mask, but I can not figure out for the life of me how to put the bugger in... any one able to help?
Logged
Savvy
Guest
« Reply #1 on: August 06, 2007, 05:53:28 pm »

I know of perl regex, which means regular expressions.
(.)+ means anything, any amount of characters.
but r1 seems to be using an interpretted string, eg "$somevar" would make a string "the information that was inside of $somevar"
therefore use the escape character \
\\
\.
\$
\@
\"
\'
etc
Therefore to put in *!savvykms@*.comcast*
a very crude method is:
(.)+("!")savvykms("\@")(.)+("\.")comcast(.)+
meaning any chars for nickname, a !, savvykms for username, an @ symbol, any chars, comcast, any chars
Not sure if this will work properly, as i'm not very good at regex, i perfer checking things easier, but knowing how to use the \ character is very important in Perl. using a regex doing something like \n could be dangerous, as it means newline in most things, but there are some \letter combos that are used to mean "any whitespace character(s)" etc, just be careful as to what you do.
Logged
Pages: [1]
Print
r1ch.net  |  r1ch.net stuff  |  Bitchbot  |  Topic: Host mask
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines