NetworkGhost
IS-IT--Management
As I am new to regexp I promise I wont be asking remedial questions for too long. I would like to split a line into to 2 variables using regexp.
Line is:
hostname 192.168.0.1
Another poster help me with a different issue that worked great:
ex: regexp {.*(\(\d*/\d*\)).* = (\d*)/(\d*)/(\d*).*} $s a b
so I assign "hostname 192.168.0.1" to variable hostline I would like to parse that to 2 sep variables. Any help is appreciated
Free Firewall/Network/Systems Support-
Line is:
hostname 192.168.0.1
Another poster help me with a different issue that worked great:
ex: regexp {.*(\(\d*/\d*\)).* = (\d*)/(\d*)/(\d*).*} $s a b
so I assign "hostname 192.168.0.1" to variable hostline I would like to parse that to 2 sep variables. Any help is appreciated
Free Firewall/Network/Systems Support-