s="favorite\ntext Favorite" puts s.gsub(/(f)avorite/i, '\1avourite')
Standard input is empty
favourite text Favourite
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!