in reply to Why doesn't this s/regex// work?
I've never used the o option and am prettty clueless on what it does, but I don't think you want it here. Sounds like you want to delete everything from the last colon to the end of the line. s/:[^:]*$// should work. ie, colon, any number of "not a colon", out to the end of the line.