Fixed regex that failed on S3 buckets with uppercase letters.