>> 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