OK, so you can either (a) parse both lines in succession with two different regular expressions (or one very flexible one) or (b) you can join the lines together (with or without the carriage return) and parse the line once. I recommend (b), but if you decide to leave the \n inside your string, you'll want to use the /s flag on your regex.
Maybe something like this:
my $buffer = undef;
while (<YOURFILE>) {
$buffer .= $_;
}
if ($buffer =~ /your regex/s) {
# do stuff with $1 ... etc.
}