fix regex for extracting bib ID from input
authorGalen Charlton <gmc@esilibrary.com>
Wed, 25 Nov 2009 14:27:04 +0000 (14:27 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 25 Nov 2009 14:27:04 +0000 (14:27 +0000)
extract_loadset

index 9b116cc..d326fcd 100755 (executable)
@@ -23,7 +23,7 @@ close FP;
 open MI, '<', $conf->{input} or die "Can't open input file: $!\n";
 open MO, '>', $conf->{output} or die "Can't open output file: $!\n";
 while (<MI>) {
-    m/tag="$conf->{tag}",+?<subfield code="$conf->{subfield}">(\d+)</;
+    m/tag="$conf->{tag}".+?<subfield code="$conf->{subfield}">(\d+)</;
     print MO unless $exclude{$1};
 }