Updated Regex match to fix possible future bug (htm -> pdf)