Check for downloading file extension using Regex

@Sahil_Garg1 - Check this post for the workaround…