in reply to Re: How regex works in array mode?
in thread How regex works in array mode?

Hi,

Yes that's the output what i want it to be, you got me thanks :)

My next question is.. is the 2 value on the array stored at $1? What if I want to use the value the "ip:192.168.243.2" how can i stored that at the other string for example $2 or something. Thanks

Or something like if the items in the array are matched with the regex (like the code that you made. It will stored at $ipline1 = ip:192.168.243.1 and $ipline2 = ip:192.168.243.2 So that I can choose which one to output or print... Is it possible? Thanks