Changeset 185 in lab


Ignore:
Timestamp:
Jan 4, 2013 12:50:31 AM (11 years ago)
Author:
mitty
Message:
  • output matched pattern with "/PATTERN/"
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/misc/regexfilter.pl

    r184 r185  
    1717} 
    1818 
    19 my $re = Regexp::Assemble->new(file => "$regexfile"); 
     19my $re = Regexp::Assemble->new(file => "$regexfile", track => 1); 
    2020 
    2121my $target = shift @ARGV; 
     
    3939        print "NG: "; 
    4040    } 
    41     print $line, "\n"; 
     41    print $line; 
     42    if ($re->source) { 
     43        print " /", $re->source, "/"; 
     44    } 
     45    print "\n"; 
    4246} 
Note: See TracChangeset for help on using the changeset viewer.