From: "touffik@..." Date: 2008-07-25T18:09:11+09:00 Subject: Re: Regexp Ruby selection On Fri, Jul 25, 2008 at 8:44 AM, Srijayanth Sridhar wrote: > Any specific reason you can't use hpricot or other HTML parsers? I didn't know this tool for ruby. I used once a parser named tidy but that's all. I'll try now and let you know. On Jul 25, 9:58 am, Sebastian Hungerecker wrote: > Generally in ruby .. denotes a range. Like starting_value .. end_value. > In this case though it denotes a flip flop, which is evil and should never > ever be used because it makes my head hurt. Here's what it does though: > some_loop { >   do_something if foo .. bar} > > This will do nothing until foo is true. When foo is true it will do_something. > It will then keep doing_something in every iteration of the loop until bar > becomes true. After bar became true it will stop doing_something until foo is > true again. > So as a summary: It doesn't do what you thought it did. As a matter of fact it > doesn't do anything sane. So just keep as far away from it as possible. > So i was wrong .. Thanks you for your explaination of this wrong use of the loop. Thanks you.