Hi --

On Wed, 22 Jan 2003, Daniel Carrera wrote:

> I'm having trouble with a simple match:
>
> >> line
> => "<img src='a.jpg' />"
> >> line =~  /(<img \.*>)/
> => 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