in reply to Re: Regex AND
in thread Regex AND

That'll be Regexp::Optimizer, which "does, ahem, attempts to, optimize regular expressions" — it performs trie optimization which I believe does not work in this particular case.

Replies are listed 'Best First'.
Re^3: Regex AND
by rickest (Novice) on Dec 02, 2004 at 17:01 UTC

    The original author may have been thinking of Regexp::Assemble. I can't say if this module will help with this particular problem.

    Regards,
    Rick
      It will not. Regexp::Assemble matches "everything that any of the individual REs match" (emphasis mine). It makes a disjunction of conditions; the OP wanted a conjunction.
      That module would be for "Regex OR". Interesting module though!