Allow in-browse editing of account groups.
[capital-apms.git] / convert / regextest.pl
blob422fc0eee48b1d14eb01a462621d4c8ea277c3e7
1 #!/usr/bin/perl
3 open RXTEST, "<", "regextest.txt";
4 while( <RXTEST> ) {
5 next if ( /\s*#/ );
6 my $before = $_;
8 # This is the RegEx we are testing. I think that this could
9 # be flawed in some situations that do not occur at present
10 # in the Catalyst APMS data.
12 s/((?<="")|(?<!"))"(?=( |$))/|/;
15 my $after = $_;
16 $_ = <RXTEST>;
17 if ( $after ne $_ ) {
18 print "! ! ! ! ! Mismatch ! ! ! ! ! \n";
19 print "Before: $before";
20 print " After: $after";
21 print "Answer: $_";