JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 01.03.2019, 15:07
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default Yet another pattern question

Regex does not work for Java engine (JD2)


**External links are only visible to Support Staff****External links are only visible to Support Staff**


My regex (It works for unnamed files!):
^\.\.\S\S?\S?\S?$
Reply With Quote
  #2  
Old 01.03.2019, 15:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,524
Default

Your pattern doesn't make ANY sense!
'Begin' 'POINT' 'POINT' 'NON WHITESPACE' 'NON WHITESPACE OR NOTHING' 'NON WHITESPACE OR NOTHING' 'END'

Take a look at the filename in JD and it is 'csv' and NOT '..csv'
leading points are moved
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 01.03.2019, 16:31
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Jiaz - My regular expression makes sense when I want to find all unnamed files.
How do you imagine finding any unnamed file among a huge amount of data?
And with any extension (not just CSV)
I would like to know how to find in JD, or maybe I will come up with something more complicated and more difficult
Reply With Quote
  #4  
Old 01.03.2019, 16:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,524
Default

How about a pattern that checks for an extension?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 01.03.2019, 16:41
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Hm.
And what about the file:
- No file name
- No extension (simple extension "File")
Reply With Quote
  #6  
Old 01.03.2019, 17:08
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,524
Default

How do you differ no extension and no name
.test -> is test extension or name
mp3 -> is mp3 name of the file extension

When I download the file, the leading dots will also be removed in browser
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

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 21:32.
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.