From: m b Date: 2011-06-14T02:32:50+09:00 Subject: Regexp.match(line) question --_d7ddb94d-90d1-4629-a77e-e04cab313dc6_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I new to Ruby. It's a lot of fun to learn.. if I do this: f=3Dopen('filename.dat'=2C'r') str=3Df.read and then: str.each_line do |line| /ruby/.match(line) ruby prints out variable line and say its a RegexpError 'empty range in character class' as if it interprets line as a Regexp What am I doing wrong? There are a lot of strange characters in variable l= ine=2C maybe that is the issue? = --_d7ddb94d-90d1-4629-a77e-e04cab313dc6_--