JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 05.05.2019, 09:54
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default filename & packagename search

filename & packagename search
[АA]\u

Unicode and normal letter.
Find only Uppercase.
Reply With Quote
  #2  
Old 06.05.2019, 15:40
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,516
Default

Pattern is invalid
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 06.05.2019, 15:41
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,516
Default

You can check pattern in regex101 and it will tell you where the error is
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 06.05.2019, 16:41
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Now good.
Code:
^[AА]
But I do not know how to use the operator \u or \l
Reply With Quote
  #5  
Old 06.05.2019, 17:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,516
Default

regular-expressions.info/unicode.html
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 06.05.2019, 18:19
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

I use \x{xxxx} for unicode code points
[\x{0419}\x{0041}]

CYRYLIC CAPITAL LETTER A
LATIN CAPITAL LETTER A

But it does not work properly, only for uppercase letters. Where did I make a mistake?
Reply With Quote
  #7  
Old 06.05.2019, 18:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,516
Default

Either you have to specify the lowercase unicode point as well or enable
(?i) - case insensitive
and
(?u), Unicode case
see
docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#CASE_INSENSITIVE
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 06.05.2019, 19:19
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

An option would be useful, for simplicity as in most Text Editor it has:

Enabled/Disabled
Case Sensitive
-or-
Match Case
Reply With Quote
  #9  
Old 07.05.2019, 08:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,516
Default

I'm sorry but when working with regex, you should also know about modifiers and how to use them.
also with checkbox you will break modifiers because you can enable/disable modifiers multiple times in a pattern. Something you can't do with a simple single checkbox
__________________
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 07:36.
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.