Its more like the while loop never runs cause your input doesn't match the
regexp (thats the reason you get your first error).


2011/3/11 Ma Sz <magda.szlagor / gmail.com>

> ok, the error disappeared but for input
> 1d+d*dddd**++d1d+d*d*1d+*111++-++d1d+dd**1-++dd111+++11-+<[o<]!
> i should get Hello but the while loop never stop
>
> --
> Posted via http://www.ruby-forum.com/.
>
>