title: Python search and replace ip address
body: <p>I want to use re.sub to search and replace whatever ip address with specific ip address using Python 
  For example in file has </p>
  
  <p><code>address = 192.168.1.1</code> or <code>address = 1.1.1.1</code> or <code>address = fe0c::1</code> The keyword is <code>address =</code>, rest of is wildcard. I want to convert to <code>address = 2.2.2.2</code> or <code>address = f870:2:2:2::1</code> . The destination is specific address. It seemed to me use re.sub simple, but I do not mind to use others</p>
  
  <p>Thanks</p>
  
  <p>Tom</p>