how to validate excel files
My JQuery
jQuery(\"#excel\").validate({ expression: \"if (VAL.match(/^([a-z]\\w*)\\.(xls[mx]?)$/) &am
You need to escape the dots.
^([a-z]\w*)(\.xlsx|\.xlsm|\.xls)$
OR
^([a-z]\w*)\.(xls[mx]?)$
[mx]? matches an optional m or x
[mx]?
m
x
Use this regex if you want to allow any characters inbetween ^([a-z].*)\.(xls[mx]?)$
^([a-z].*)\.(xls[mx]?)$