regex:file_path:windows
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
regex:file_path:windows [2021/05/21 00:05] – peter | regex:file_path:windows [2021/05/26 15:26] (current) – peter | ||
---|---|---|---|
Line 72: | Line 72: | ||
</ | </ | ||
- | </WRAP> | + | To allow the very bottom entry here: **< |
- | + | ||
- | ---- | + | |
- | + | ||
- | + | ||
- | ---- | + | |
< | < | ||
- | ^(?:[\w]\: | + | ^(?:[a-zA-Z]:\\$)|^(?: |
</ | </ | ||
- | |||
- | ^\\{2}[\w-.]+(\\{1}(([\w-][\w-\s]*[\w-]+[$$]? | ||
- | |||
- | Works.... | ||
- | ^(?: | ||
- | |||
- | ^(?: | ||
- | |||
- | |||
- | |||
- | ([a-z_\-\s\0-9\.\\]+)+([a-z_\-\s\0-9\.]+)(\\)([a-z_\-\s\0-9]+)$ | ||
- | |||
- | < | ||
- | ^(?: | ||
- | |||
- | ^(?: | ||
- | </ | ||
- | |||
- | < | ||
- | (?: | ||
- | | ||
- | (?: | ||
- | [^\\/: | ||
- | |||
- | |||
- | ^(?: | ||
- | </ | ||
- | |||
- | |||
- | ===== Windows ===== | ||
- | |||
- | <code bash> | ||
- | (\\\\([a-z|A-Z|0-9|-|_|\s]{2, | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | <code bash> | ||
- | ^((?: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | <code bash> | ||
- | ^[a-zA-Z]: | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | * **< | ||
- | |||
- | * **< | ||
- | |||
- | * **< | ||
- | |||
- | * **< | ||
- | |||
- | All of that is is repeated 0 to many times, with the last backslash optional. | ||
- | |||
- | For many use cases it may be best to restrict the path length to 256 characters. | ||
- | |||
- | * To do so, replace < | ||
</ | </ | ||
regex/file_path/windows.1621555550.txt.gz · Last modified: 2021/05/21 00:05 by peter