From: Mark Toth Date: 2007-12-30T21:38:59+09:00 Subject: replace words to be bold for each search word I have two strings: The first string with dynamic content: @string = "this is the example of the text" The second one includes search words: @search = "example text" How can I do that it prints the search words with bold? Result: this is the example of the example -- Posted via http://www.ruby-forum.com/.