in reply to Debugging Regexes

the re pragma may be your friend here:

use re qw(debug); ( "hello Gags" =~ /^(?=hello).*[^G][^a].*$/ )&& print ("Matched") || p +rint ("Unmatched");

Should give you more information than you need.

/J\

Replies are listed 'Best First'.
Re^2: Debugging Regexes
by perlgags78 (Acolyte) on Jun 28, 2004 at 17:15 UTC
    That's a very handy tool indeed!!!
    Is there anywhere that I can find any docs on it?
    I've to run for my train, thanks again for your help.

    Thanks,
    Mark.
      perldoc re

      HTH

      Sweetblood