I have a string - a sample would be the below:
g0/1 192.168.1.1 YES NVRAM up up
I want to pull the IP address out of it but not the last octet. I want to pull 192.168.1. out of it so it can used later.
I think I need to use split, but am not sure on how to achieve this.
output = ' g0/1 192.168.1.1 YES NVRAM up up'
ouput = ouput.split('192.168.1.',)