From: Jeff Pinyan Date: Sun, 6 Jan 2002 15:36:21 +0000 (-0500) Subject: leading (.*) should not be implicitly ^'d X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e09294f4235f3caccd813dfa233412a6da07191e;p=p5sagit%2Fp5-mst-13.2.git leading (.*) should not be implicitly ^'d Message-ID: p4raw-id: //depot/perl@14115 --- diff --git a/regcomp.c b/regcomp.c index 07b11ee..d8ec0a9 100644 --- a/regcomp.c +++ b/regcomp.c @@ -1848,7 +1848,7 @@ Perl_pregcomp(pTHX_ char *exp, char *xend, PMOP *pm) first = NEXTOPER(first); goto again; } - else if ((OP(first) == STAR && + else if (!sawopen && (OP(first) == STAR && PL_regkind[(U8)OP(NEXTOPER(first))] == REG_ANY) && !(r->reganch & ROPT_ANCH) ) {