can someone tell me the javascript regular expression for physical path like
1) User Should enter something like this in the textbox( c://Folder1/) . Maybe in d: or e:
2) But after that acceptable
a) (c://Folder1/Folder2/)
b) (d://Folder1/Folder2/Folder3/abc.txt)
e) (c://Folder1/Folder2/Folder3/abc.txt)
From the examples you’ve given, something like this should work:
ie:
[a-zA-Z]= a single letter (upper or lower case)followed by
://= the characters “://”followed by:
(\w+/)+= at least one “something/”.“something/” defined as :
\w+= at least one word character (ie any alphanumeric), followed by/= literal character “/”Hope this helps – my syntax may be a little off as I’m not fully up to speed on the javascript variant for regex.
Edit: put regex in code tags so it is visible! And tidy up explanation.