I have url like this i want it to accept .pdf and .PDF

$url =~ m|\/([\d\]*-[\d\]*\.pdf)$|;
any help??