From: dblack@... Date: 2006-04-27T22:01:17+09:00 Subject: Re: [SUMMARY] Text Munger (#76) Hi -- On Thu, 27 Apr 2006, James Edward Gray II wrote: > On Apr 27, 2006, at 7:41 AM, dblack@wobblini.net wrote: > >> Hi -- >> >> On Thu, 27 Apr 2006, Ruby Quiz wrote: >> >>> It's important to remember that this is the Regular Expression definition >>> of >>> "words", including digit characters and the underscore. That's not a >>> perfect >>> match for the quiz task, but was a popular choice nonetheless. >>> >>> Now, I did say *all* words are scrambled and that is what I meant. A run >>> of >>> four or more punctuation characters is a word, and the middle punctuation >>> would >>> be scrambled. In practice, this is rare enough to be a minor issue. >> >> "Are you kiddin'?!" he exclaimed :-) >> >> I thought some of the solutions addressed these problems, didn't they, >> with [^\W\d_] and such? > > I meant that scrambling long runs of punctuation didn't really seem to be a > problem in actual usage. I gues "Are you kiddin'?!" is a bit of a stretch -- though possible -- but consider: "I'm just not sure...." he said. David -- David A. Black (dblack@wobblini.net) Ruby Power and Light, LLC (http://www.rubypowerandlight.com) "Ruby for Rails" PDF now on sale! http://www.manning.com/black Paper version coming in early May!