Olonichev Sergei wrote:
> 
> Ok.
> 
> 3.
> echo "=XX=================================" | ruby -e 'a=$stdin.gets; if a
> =~ "X((.)*..?.)+X" then puts $& end'
> 
> Hangs up !!!
> 
> ruby -v
> 
> ruby 1.6.2 (2000-12-18) [i386-cygwin]
> 

BTW, this terminates properly on my machine with ¨¤ approx. 2 hours (which
shows how baldy designed the RegEx is...)

Note that I'm using a more recent Ruby version:

[c:\]ruby -v
ruby 1.6.6 (2001-12-26) [i586-mswin32]

Happy rubying!

Stephan