dating arabic webstie Validating filenames with regularexpressionvalidator

Using the object model will give you a good ole' exception.I've seen a lot of approaches to solving this problem, and implemented a couple myself.

validating filenames with regularexpressionvalidator-64

Microsoft is conducting an online survey to understand your opinion of the Technet Web site.

If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.

Recently we ran into a problem when we modified a Share Point list form with Info Path.

When users added an attachment with special characters in the filename we would get an error message whenever we would try to save the list item (this was expected off course).

The regex given will match (admittedly pathological) filenames like def Why not use the simpler @"\.(jpg|jpeg|png|gif)$" which my VERY limited knowledge of regular expressions tells me looks for one of the extensions at the end of a string? I wonder if you recognise my name (Smart421, London Gazette).

It was a pleasant surprise to do a Google search on Regex and come across your picture.-Bala" id="ctl00_m_m_i_ctl00_gr_ctl01_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3767222" / I don' think there is a straight forward way to validate the date attached with the file name, may be I may not know.If you are in 8.5 and above version there is a way to get the source file name.I'm not great at regular expressions, but something like this should work: (.*\.jpg)|(.*\.jpeg)|(.*\.png)|(.*\.gif) That should do the trick.If you just want jpg files, try: (.*\.jpg)|(.*\.jpeg) Each section within ( ) means, any number of characters, followed by a . According to a thread on the msdn forum we are not the only one having this problem: The solution we came up with was to add some validation on the filenames in the Info Path form.