my $regexp = qr/ ^ # beginning of line (\d+) # as many digits as we can find .* # anything at all hullBts_static # literally, "hullBts_static" /x;