JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09.02.2017, 06:33
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default Filter regex not work (Unicode, Not Unicode)

Filter regex not work :(

Unicode:
(?>\x0D\x0A|[\x0A-\x0D\x{85}\x{2028}\x{2029}])

Not Unicode:
(?>\x0D\x0A|[\x0A-\x0D])
Reply With Quote
  #2  
Old 09.02.2017, 09:52
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

How about providing example String and what exactly you want to filter?
Also check docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 09.02.2017, 10:21
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Oh, What exactly Regex?
Show the filename of the Unicode and non-Unicode.
I really like Onigmo regex.
Reply With Quote
  #4  
Old 09.02.2017, 10:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Please provide example links or something to work with. I also don't understand what your regex should do.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 09.02.2017, 11:05
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

RE版DJ仔.mp3 (Find Unicode Filename)
Bla Bla Bla.mp3 (Find Non-Unicode Filename)

Download Only Unicode Filename:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #6  
Old 09.02.2017, 12:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

When using correct pattern, works fine
Filter -> Filename contains ->
.*?[\x0A-\x0D\x{85}\x{2028}\x{2029}]*
enable regex
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 30.03.2017, 13:47
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Quote:
Originally Posted by Jiaz View Post
When using correct pattern, works fine
Filter -> Filename contains ->
.*?[\x0A-\x0D\x{85}\x{2028}\x{2029}]*
enable regex
Code:
System.ArgumentException: analizowanie ".*?[\x0A-\x0D\x{85}\x{2028}\x{2029}]*" - Za ma³o cyfr szesnastkowych.
                                       w System.Text.RegularExpressions.RegexParser.ScanHex(Int32 c)
                                       w System.Text.RegularExpressions.RegexParser.ScanCharEscape()
                                       w System.Text.RegularExpressions.RegexParser.ScanCharClass(Boolean caseInsensitive, Boolean scanOnly)
                                       w System.Text.RegularExpressions.RegexParser.CountCaptures()
                                       w System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
                                       w System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache)
Reply With Quote
  #8  
Old 01.04.2017, 02:22
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

that error output isn't from JDownloader
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #9  
Old 01.04.2017, 10:39
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Excuse me very much, but I mean "Quick FiltrRegex" in the LinkGrabber or Download list

Example Working Unicode + Addition Ignore Polish alphabet
[^\x{00}-\x{7f}\x{104}\x{106}\x{118}\x{141}\x{143}\x{d3}\x{15a}\x{179}\x{17b}\x{105}\x{107}\x{119}\x{142}\x{1 44}\x{f3}\x{15b}\x{17a}\x{17c}]
Reply With Quote
  #10  
Old 03.04.2017, 11:34
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by djmakinera View Post
[^\x{00}-\x{7f}\x{104}\x{106}\x{118}\x{141}\x{143}\x{d3}\x{15a}\x{179}\x{17b}\x{105}\x{107}\x{119}\x{142}\x{1 44}\x{f3}\x{15b}\x{17a}\x{17c}]
You just specify a character class, you must also specify a greedy quantifier!
Please learn regex yourself!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 01.04.2017, 14:38
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

my regex buddy is out of date (old version) but it's stating that the unicode points are invalid for the java package.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #12  
Old 02.04.2017, 06:18
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

What is the correct Regex for "Quick Filter"?
Because both regex does not work in JD2!
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 17:01.
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.