From: Gregory Seidman Date: 2006-04-22T02:33:42+09:00 Subject: Re: [QUIZ] Text Munger (#76) On Sat, Apr 22, 2006 at 02:28:48AM +0900, James Edward Gray II wrote: } On Apr 21, 2006, at 9:27 AM, Gregory Seidman wrote: } } >On Fri, Apr 21, 2006 at 11:16:38PM +0900, Dirk Meijer wrote: } >} this quiz is probably easier than usually, as, for the first time } >} ever, i felt up to it, and created a solution in not so much time. } >} i'll be posting it in 48 hrs ;-) } > } >Yes, I sent my solution directly to James. } } Random playing around... } } Neo:~/Desktop$ ruby gregory_seidmans_solution.rb test_document.txt } Atchtaed is my r?sum?. } Neo:~/Desktop$ ruby gregory_seidmans_solution.rb test_document.txt } Acaehttd is my r?sum?. } Neo:~/Desktop$ ruby gregory_seidmans_solution.rb test_document.txt } Atceahtd is my r?sum?. } Neo:~/Desktop$ ruby gregory_seidmans_solution.rb test_document.txt } Ahaecttd is my r?sum?. Yeah, it treats accented characters as punctuation. The two regexes could be changed to handled accented characters, but I leave that as an exercise for the reader . } James Edward Gray II --Greg