From: Harry Kakueki Date: 2007-07-06T18:31:55+09:00 Subject: Re: Searching a word > From this example ,i want to get the hussain.jpg > can any body tell me > Ok > > -- > Posted via http://www.ruby-forum.com/. > > Try this. str = "new\nhussain.jpg" str =~ /(.*?)<\/image>/ p $1 Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/