Newbie Question About Terminal

Hi! I’m currently reading about regular expressions in Ruby U.
Guidehttp://www.rubyist.net/~slagell/ruby/.
I copy and then paste the program, save it to regex.rb. I ran it but
there
are no different colors like that show matched with a regular
expression.
I’m using Mandriva 2009.1, using gnome-terminal.