Regular expressions that check for "pdf" are now case insensitive.