Currently I have this:
This works ok - but if my string changes to this:
How would I be able to find both IP addresses and put them in the table? is that possible with APMS? if so how can it be done?
Thanks.
Code:
mystring = "The quick brown <span>192.168.100.10</span> fox jumps over the lazy dogs" result1 = string.match(mystring, '[0-9]+.[0-9]+.[0-9]+.[0-9]') --find the ip address in a string result2 = String.Find(mystring, result1, 1, false); --get the start position of the IP target_table = {result1,result2}; --store the values in a table for later Dialog.Message("Notice", target_table[1] .. "\n\n" .."At position: " .. target_table[2], MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); --show the restuls from the table
Code:
mystring = "The quick brown <span>192.168.100.10</span> fox jumps over the lazy dogs <span>192.168.100.20</span>"
Thanks.
Comment