From: Ne Scripter Date: 2009-09-03T01:17:59+09:00 Subject: Reg Ex exclusion Hi all, I thought this would be easy, but I am clearly mixing up my logic. I have a string like so string = "joe|blogg|clothing|" I want to remove the last pipe with a reg ex and I am trying to use the following code to do so: string(/\|$/, 1) This however is not doing anything except delete the entire string, any suggestion are greatly appreciated. Many thanks -- Posted via http://www.ruby-forum.com/.