From: Chandu80 Date: 2010-11-08T21:20:17+09:00 Subject: Identify IP address from a text file and replace it with new address. Hello All, I want to write a script by which I can open up a text file,scan through it,find the line which contains the word 'test_site',get the IP address corresponding to that word, replace that IP with another IP address and then save and close the file. Are there any commands in Ruby to identify IP address from a string? Thanks in advance Regards Chandrika