On Sat, Nov 24, 2001 at 08:42:47PM -0600, Dave Bender wrote: > I'm a rookie with regular expressions, but isn't it asking: "match on starts > with 'abc' or ends with def" > > both of those are true so it seems to me like it would match. Why wouldn't > it?
That is correct, to match what I think the original poster suggested would be: ^(abc|def)$ > > > > -----Original Message----- > From: Matthias Gartner [mailto:[EMAIL PROTECTED]] > Sent: Saturday, November 24, 2001 4:47 PM > To: [EMAIL PROTECTED] > Subject: Why does this RE matches? Am I missing something? > > > Hello, > > I added this test to the RETest.txt file. RE says that the > expression DOES match. Is this to be expected? I don't think so.... > > #149 > ^(abc)|(def)$ > abcdef > NO > > > (jakarta-regexp-1.2) > Regards, > Matthias > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>