in reply to Re: Global Regex sans //g
in thread Global Regex sans //g

Thanks for pointing that out! The output from use re qw/debug/; makes a lot more sense now that I realize what was happening.

However, using \1 to force matches to fail seems problematic at best, as the string could be repetitive and thus succeed and stop prematurely. A contradiction (eg [^\D\d]) would preclude this possiblity, but are there any implications of such a contradiction beyond this usage?

Replies are listed 'Best First'.
Re^3: Global Regex sans //g
by tlm (Prior) on May 02, 2005 at 09:26 UTC

    I think that such a contradiction would work fine, or the more succinct (and zero-width) (?!).

    the lowliest monk

      aka "doesn't match nothing"