From: Tom Cloyd Date: 2008-06-18T20:28:48+09:00 Subject: gsub and regex I'm trying to replace all /\n / with /\n/ in a string, but gsub won't allow a regex as the replacement when a match occurs. I'm getting myself considerably confused about data types and regex, and just plain need some help. Is there some way to do this replacement, using gsub? Thanks, t. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tom Cloyd, MS MA, LMHC Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << tc@tomcloyd.com >> (email) << TomCloyd.com >> (website & psychotherapy weblog) << sleightmind.wordpress.com >> (mental health issues weblog) << directpathdesign.com >> (web site design & consultation) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~