Page is a not externally linkable
dkubb - 4:07 am on Feb 1, 2004 (gmt 0)
Also note that some of the other examples in this thread would mistakenly match words that have error as a substring, like "terror" or "errors". You can account for this by using \b to match the word boundaries. if($response->is_success and $response->content !~ /\berror\b(?!\s+pages)/i) {
The following should work without any kludges. It uses a negative look-ahead assertion to look for the exact word "error" that is not followed by the word "pages".
return $response->content;
}
else {
$Error_msg = $response->message;
return undef;
}