JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > English Support > Problems & Bug Reports
Closed Thread
 
Thread Tools Display Modes
  #1  
Old 09.01.2017, 16:59
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default Regex Drive Letter Problem.Please help

Regex Drive Letter Problem

AB (start name)
My regex:
Code:
P:\\AB\s
Found PATH:
Code:
P|AB 1
(OK)

Found PATH
Code:
P:\z AB
(BAD)


Please help, correct regex Drive Letter!
  #2  
Old 09.01.2017, 17:39
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,565
Default

How about to use a pattern that matches on drive letter only instead of everywhere within the path?
__________________
JD-Dev & Server-Admin
  #3  
Old 09.01.2017, 17:45
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Work for me
Code:
[E-Z]:\\AB\s
Wrong
Code:
P:\\AB\s
Where I made a mistake?

Found Foldername Download
AB1
AB 1
AB 1 HJ

Ignore
zAB
z AB
abJk
bhj ab
etc.


edit:
Shouldbe?
Code:
[^P]:\\AB\s
  #4  
Old 09.01.2017, 17:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,565
Default

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  
Old 09.01.2017, 18:22
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

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  
Old 09.01.2017, 18:30
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,565
Default

so you want to match on
X:\AB\* or what exactly?
__________________
JD-Dev & Server-Admin
  #7  
Old 19.01.2017, 11:51
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Quote:
Originally Posted by Jiaz View Post
so you want to match on
X:\AB\* or what exactly?
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  
Old 19.01.2017, 14:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,565
Default

You need to Escape \ how else should it distinguish between '\n' as newline or as '\n'
__________________
JD-Dev & Server-Admin
  #9  
Old 19.01.2017, 16:53
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

E:\AB (Path Disk)

Invalid Regex:
E:\\AB (Not Found, Not work)

Regex .NET
  #10  
Old 19.01.2017, 19:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,565
Default

E:\\AB is valid regex, working fine here
regex101.com
__________________
JD-Dev & Server-Admin
  #11  
Old 19.01.2017, 21:57
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Nof found any files
F:\\AB(?= 1) (NOT FOUND ANY FILES, WHAT WRONG REGEX?)

[E-Z]:\\AB(?= 1) (WORK)
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 16:47.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.