Added support for regular expression for file extension matching