From: dblack@... Date: 2003-01-22T05:47:44+09:00 Subject: Re: Regular expressions Hi -- On Wed, 22 Jan 2003, 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? You've escaped your . so it's a literal . , which then isn't found. You have to remove the '\'. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav