From: timr Date: 2009-09-03T08:42:16+09:00 Subject: Re: Reg Ex exclusion >> string = "joe|blogg|clothing|" => "joe|blogg|clothing|" >> string.chop => "joe|blogg|clothing" >> string[/(.*)\|$/,1] => "joe|blogg|clothing" >> string.split("|").join("|") => "joe|blogg|clothing" The regex solution submitted before is good, though if all of your cases are this straight forward, I think string.chop is hard to beat. -tim