From: Kalman Noel Date: 2006-10-22T21:00:15+09:00 Subject: Re: downcase part of a string ilhamik: > hi, > I want to downcase a string but without specific parts. > for example: > msg = "THIS is a Text and (NO Change HERE) HELP" If the parentheses occur only once: if msg =~ /\(.*?\)/ $~.pre_match.downcase + $~[0] + $~.post_match.downcase end Kalman