User Tools

Site Tools


regex:file_path

Differences

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

Link to this comparison view

Next revision
Previous revision
regex:file_path [2021/05/20 10:16] – created peterregex:file_path [2021/05/20 10:32] (current) peter
Line 1: Line 1:
 ====== Regex - File Path ====== ====== Regex - File Path ======
  
-===== Windows =====+[[Regex:File Path:Drive letter paths|Drive letter paths]]
  
-<code bash> +[[Regex:File Path:Drive letter and UNC paths|Drive letter and UNC paths]]
-(\\\\([a-z|A-Z|0-9|-|_|\s]{2,15}){1}(\.[a-z|A-Z|0-9|-|_|\s]{1,64}){0,3}){1}(\\[^\\|\/|\:|\*|\?|"|\<|\>|\|]{1,64}){1,}(\\){0,+
-</code>+
  
-<WRAP info> +[[Regex:File Path:Windows|Windows]]
-**NOTE:**  Disallows a few characters<nowiki>\/:*?"<>|</nowiki> +
-</WRAP>+
  
----- 
  
-<code bash> 
-^((?:[a-z]:\\$|(?:[a-z]:|\\\\[a-z]+\\(?!\.)[^\r\n$<>]+\$?)))((\\|(\\(?!\.)[^\r\n<>\\]+)*)(?<!\\)$)  
-</code> 
- 
----- 
  
regex/file_path.1621505789.txt.gz · Last modified: 2021/05/20 10:16 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki