in reply to Re: better way delete comma separated hash values?
in thread better way delete comma separated hash values?

Your regexp is only bounded on one end, but it probably should be bounded on both. Let's not convert "pineapple,apple,banana" into "pinebanana" when deleting "apple".