in reply to Extracting Bibliography Citations
Looks like that catches the other casesmy $data=''; while (<>) { my $line=$_; $line=~s/[\n\r\l]//g; if (length($line)<10) { $data.=$line; } else { if ($data=~m/(?:\s[12]\d{3}\s*\)|\spp.\s+)/) { print "$data\n\n"; $data=$line; } else { $data.=$line; } } } print "$data\n\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting Bibliography Citations
by Limbic~Region (Chancellor) on Sep 02, 2008 at 15:27 UTC | |
by UnderMine (Friar) on Sep 02, 2008 at 15:40 UTC | |
by Limbic~Region (Chancellor) on Sep 02, 2008 at 17:01 UTC |