From: Paul DuBois Date: 2003-01-22T05:42:07+09:00 Subject: Re: Regular expressions At 5:38 +0900 1/22/03, Daniel Carrera wrote: >I'm having trouble with a simple match: > >>> line >=> "" >>> line =~ /()/ >=> nil > >Shouldn't "." match anything other than "\n"? >Can anyone see what I'm doing wrong? But you have \., which matches a literal period. > >-- >Daniel Carrera >Graduate Teaching Assistant. Math Dept. >University of Maryland. (301) 405-5137