From: Robert Klemme Date: 2010-12-09T19:44:02+09:00 Subject: Re: Splitting on capital letters On Thu, Dec 9, 2010 at 9:14 AM, botp wrote: > On Thu, Dec 9, 2010 at 8:02 AM, Ralph Shnelvar wrote: >> This is sooo far beyond my skill level. > > maybe try simple first, ie, get lower and up chars and put a dash in bw. > > eg > >  "BenefitsAndFeatures".gsub /([a-z])([A-Z])/ , '\1-\2' Much better! Slap hand on face. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/