Validating filenames with regularexpression validator Adultdateline
This guarantees a failure which the user cannot understand or recover from.
Sequence of events is something like: I realize that the file name issue is with Share Point, but I would think that Nintex forms could parse file names used as forms attachments.
The mask must be a string composed of one or more of the masking elements from the following table.
The decimal (.), thousandths (,), time (:), date (/), and currency ($) symbols default to displaying those symbols as defined by the application's culture.
Matching the file name extension is not trivial for all possible situations.DOTALL is a flag in most recent regex libraries that makes the . There is no 100% reliable solution since the RFC is way too complex. ] )*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_] )*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]\.[0-9]\.[0-9]\.[0-9]))(:[0-9])? $ This will make sure that every number in the IP address is between 0 and 255, unlike the version using \d which would allow for 999.999.999.999.metacharacter match anything INCLUDING line breaks. Java Script by default does not support this since the . This is the best solution and should work 99% of the time is. If you want to match an IP within a string, get rid of the leading ^ and trailing $ to use \b (word boundaries) instead. The regular expression is only useful to validate the format of the date as entered by a user.at the beginning of the regular expression, to ensure that the string matches from the beginning.
However, depending how you match the string, this might not be necessary.
If any characters are included in a file name which are know to fail in Share Point, Nintex should inform the user immediately and instruct them to use a file name without the offending character(s).