#1
|
|||
|
|||
Regex Drive Letter Problem.Please help
Regex Drive Letter Problem
AB (start name) My regex: Code:
P:\\AB\s Code:
P|AB 1 Found PATH Code:
P:\z AB Please help, correct regex Drive Letter! |
#2
|
||||
|
||||
How about to use a pattern that matches on drive letter only instead of everywhere within the path?
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
Work for me
Code:
[E-Z]:\\AB\s Code:
P:\\AB\s Found Foldername Download AB1 AB 1 AB 1 HJ Ignore zAB z AB abJk bhj ab etc. edit: Shouldbe? Code:
[^P]:\\AB\s |
#4
|
||||
|
||||
You should learn to express yourself better. I simply don't understand what you mean by Found Foldername, ignore
First you were talking about drive letters, now you talk about folder names?!
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
JD2 download files without size (link check disabled = faster decrypt) so
Now I want to delete files of small size, using better management application files. But I want to select only certain folder names and the letter of the partition, but all my regex not MATCH to my folder names, where the name of the initial AB Code:
Filename Options Regex ON Incl. Subfolders Code:
InDirectory Regex ON Incl. Subfolders |
#6
|
||||
|
||||
so you want to match on
X:\AB\* or what exactly?
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Example:
Original Message: System.ArgumentException: "E:\V\*" - Nierozpoznana sekwencja specjalna \V. w System.Text.RegularExpressions.RegexParser.ScanCharEscape() w System.Text.RegularExpressions.RegexParser.ScanBasicBackslash() w System.Text.RegularExpressions.RegexParser.ScanRegex() w System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op) w System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache) |
#8
|
||||
|
||||
You need to Escape \ how else should it distinguish between '\n' as newline or as '\n'
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
E:\AB (Path Disk)
Invalid Regex: E:\\AB (Not Found, Not work) Regex .NET |
#10
|
||||
|
||||
E:\\AB is valid regex, working fine here
regex101.com
__________________
JD-Dev & Server-Admin |
#11
|
|||
|
|||
Nof found any files
F:\\AB(?= 1) (NOT FOUND ANY FILES, WHAT WRONG REGEX?) [E-Z]:\\AB(?= 1) (WORK) |
|
|