From: Mark Toth Date: 2007-12-30T23:08:37+09:00 Subject: Re: replace words to be bold for each search word Mark Toth wrote: > Thanks for your answer. > I have now tried, but it only sets the first search word bold not the > others. > > I卒m a newbie for this and don卒t know what the problem can be... > > /regards, > > mark I want to correct myself. It works for every search words, but they have to be directly after each other. It works for example: text = "This is an example text." search = "example text" # here are "example text" bold but not for: text = "This is an example of the text." search = "example text" # here is only "example" bold Any idea? Regards, Mark -- Posted via http://www.ruby-forum.com/.