As we all know that FileUpload control does not support file type restriction out of the box, and you have to do it on your own, for example through RegularExpressionValidator.
That's fine, so I used a validator with this expression
Code:
^.+?\.(doc|xls|jpg|ppt|pdf)$
, and it worked like charm. However if I change the regexp to
Code:
\.(doc|xls|jpg|ppt|pdf)$
, it became broken. That's strange though, as logically speaking, anything matches the first regexp also satisfies the second one...
Is there some sort of wierd restriction came with RegularExpressionValidator?