Hi
I have a file upload control on a page and have added regular expression validator control to validate File Upload control to match below rules.
  1.The following are invalid characters in a file name: " # % & * : < > ? \ / { | } ~  2.The length of the file name can't exceed 128 characters 3.The period (dot) character can't be used at the beginning of a file name 4.The period (dot) character can't be used at the end of a file name 5.The period (dot) character can't be used consecutively in the middle of a file name 6.Allow only files with xlsx extension
I have Regex expression which copied from site http://regexadvice.com/forums/thread/34574.aspx and tweaked it to match rule #6.
^(?!\..*)(?!.*\.\.)(?=.*[^.]$)([^\"#%&*:<>?\\/{|}~]){1,123}\.(xlsx)$
However, it does not work. First issue I faced ...

Go to the complete details ...