Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^\\\\[\w-]+\\(([\w()-][\w\s()-]*[\w()-]+)|([\w()-]+))\$?(\\(([\w()-][\w\s()-]*[\w()-]+)|([\w()-]+)))*\\?$
|
Description |
Validation of a directory (not file) in UNC format
Checks for \\server\share\subdir, where subdirs are optional.
Share may have a $, but only at the end.
Shares and subdir may have embedded spaces.
String may optionally have a trailing slash.
|
Matches |
\\server\my share\my subdir | \\server\my share$\ | \\server\my share\subdir1\subdir2\
|
Non-Matches |
c:\subdir | \\my server\share$ | \\myserver\share\subdir\file.ext
|
Author |
Rating:
Monique Hawkins
|
Displaying page
of
pages;
Items to