To create a function is complicated because the bot copies an item that the users announce. Example: 192.168.0.1 .. masters ... not roox version 1.0 go go etc

Code: Select all
test$ = "the quick brown fox jumps over 15634 lazy dogs on 169.45.0. without any regrets! 169.45.0.1"
Code: Select all
onErrorGoto(?Fred)
AND51 wrote:@ pwdyer:
Why are you using 5 numbers per IP field in your regular expression?
Code: Select all
"([0-9][0-9][0-9]|[0-9][0-9]|[0-9]).([0-9][0-9][0-9]|[0-9][0-9]|[0-9]).([0-9][0-9][0-9]|[0-9][0-9]|[0-9]).([0-9][0-9][0-9]|[0-9][0-9]|[0-9])")
= 4 x "([0-9][0-9][0-9]|[0-9][0-9]|[0-9])."
= [0-9][0-9][0-9] or [0-9][0-9] or [0-9]
Code: Select all
((1|2)?\d\d?\.){3}(1|2)?\d\d?
Code: Select all
onErrorGoto(?Fred)
It's shorter, I don't understand it so I don't know if it works, does it run faster?AND51 wrote:@ pwdyer:
Sorry, I didn't recognize the vertical bar |.
What about the expression![]()
Code: Select all
((1|2)?\d\d?\.){3}(1|2)?\d\d?
I didn't read the reason for this dispute, but the original poster clearly stated that he needs a string (just read his posts), and OpenNetworkConnection() definitely takes the ip address as a string as well (to support hostnames as well as ip addresses). That's why the first parameter reads ServerName$ with a $ at the end.Kaeru Gaman wrote:well, no.But if you would have read his posts carefully, you would know that his prefered format would be string.
I additionally had to have known anything about IRC-bots (what I don't do),
at least that he wants to use OpenNetworkConnection and that this function I don't know at all expects a string as argument.
see, smartass?