Posted on: 6/7/2014 7:52:14 AM | Views : 364

Hi,
Can anyone help me with this. I have a regex which validates only file to upload .doc, .docx, .DOCX, .rtf, and .pdf. See below the regex code:-
"^.+(.doc|.DOC|.docx|.DOCX|.rtf|.RTF|.pdf|.PDF)$" but in this scenario, I also want to validate the file name should not include more than one (.) For ex: A file name should not be like this abc.abc.doc it should be like this abc.doc
Please help.
Thanks in Advance,
Nadeem Khan



Go to the complete details ...