User Tools

Site Tools


regex:file_path:windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
regex:file_path:windows [2021/05/26 08:32] peterregex:file_path:windows [2021/05/26 15:26] (current) peter
Line 70: Line 70:
 <code> <code>
 ^(\w:\\$)|^([A-Za-z_\-\s0-9\.\$]+)$|^(?:[\w]\:|\\)(\\(?!\.)(?!\s[a-z_0-9-])[A-Za-z_\-\s0-9\.\$]+)+$ ^(\w:\\$)|^([A-Za-z_\-\s0-9\.\$]+)$|^(?:[\w]\:|\\)(\\(?!\.)(?!\s[a-z_0-9-])[A-Za-z_\-\s0-9\.\$]+)+$
 +</code>
 +
 +To allow the very bottom entry here:  **<nowiki>\\server\filename\{token}\file</nowiki>**:
 +
 +<code>
 +^(?:[a-zA-Z]:\\$)|^(?:[a-zA-Z]\:|\\)(\\(?!\.)(?!\s[a-zA-Z_0-9-\.])\{?[a-zA-Z_\-\s0-9\.\$]+)+(\}\\([a-zA-Z_\-\s0-9\.\$])+?)?$
 </code> </code>
  
regex/file_path/windows.1622017969.txt.gz · Last modified: 2021/05/26 08:32 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki