Hi guys I know you're tired of all these INI questions. :P
I have an INI with hundreds of IP's listed inside which are the value of an item. The item is the username of the IP holder. Depending on whether they have dynamic or static, some usernames only have 1 IP listed as a value and some have 20+ IP's listed. Example:
[userips]
name1=1.2.3.4
name2=5.6.7.8
name3=9.10.11.12
name4=13.14.15.16,17.18.19.20,21.22.23.24
etc.
I have the script built to return the holder's name of the given IP (like an IP search script). But I want to be able to show
which IP is matching the wildcard search if the user has multiple IP's listed next to their name.
So for example, using the quote above:
Joe: !searchip 17
Bot: Match found. 'name4' (17.18.19.20)
Like I said I have the entire script written, I just need to find out how to snag the matched IP and display what the IP is that is being matched. Every attempt I've made just returned everything after the name (the entire value, including every IP listed next to the name).
Any help is appreciated. Thanks.