#! /usr/bin/perl -w use strict; use 5.018; # test errmsg match # sample (and partial; see the chunking in the next code) errmsgs from file: # Result
##
C:\>test_err_finder.pl
FOUND IT: Result Error: 404 Not Found
FOUND IT: Result Error: SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
verify failed
NO MATCH ON abcde
C:\>
####
#!/usr/bin/perl -w
use strict;
use 5.018;
# find linkchecker error reports in html report, linkchecker-out20151120.html
$/ = '\n
];
# errmsg from file:
# ResultError: 404.... ( or 301 etc.)
# ResultError: SSLError: [Errno 1] _ssl.c:504:....
my $errmsg = qr[ResultError:.*?(?= )];
my $eot = qr[