Changeset 232


Ignore:
Timestamp:
04/10/06 14:27:45 (18 years ago)
Author:
nanardon
Message:
  • fix lidlor plugin to match all possible case
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/ourplugins/cr_lid_lor.pl

    r230 r232  
    3737    while (my $line = <$h>) { 
    3838        chomp($line); 
    39         if ($line =~ /^Numero  \|Nom             \|Voies actives/) { 
     39        if ($line =~ /^Numero\s+\|Nom\s+\|Voies actives/) { 
    4040            my $nextline = <$h>; 
    4141            chomp($nextline); 
    42             $nextline =~ /^1       \|E(\d)/; 
     42            $nextline =~ /^1\s*\|E(\d)\d{6}\.?N\d{4}/; 
    4343            if ($1) { 
    4444                return(1, 
Note: See TracChangeset for help on using the changeset viewer.