Main Area and Open Discussion > Living Room
Regexp help
Renegade:
That helps.
This works, but you must specify that the search is multiline in order for the ^ and $ to operate properly:
^.+CtrlChan .+[^0-9]([1-9][0-9]{0,2}\.[1-9][0-9]{0,2}\.[1-9][0-9]{0,2}\.[1-9][0-9]{0,2}).+$
Here's the result in Expresso:
Renegade:
And here's the analysis to help explain what's happening in there:
4wd:
With a little help from here.
NOTE: It doesn't check if the IP is from a valid range like @Ren's but on the other hand it won't miss any if the IP is invalid.
Josh:
Renegade and 4wd, I owe you both big time! You both just helped me save a large amount of time by not having to search these files manually. Thanks!
4wd:
Actually, @Ren's does pick up invalid IPs ... Sorry :-[
Honestly @Ren, you should have limited the number range it'll match on then I wouldn't have been wrong :P
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version