#1
|
|||
|
|||
filename & packagename search
filename & packagename search
[АA]\u Unicode and normal letter. Find only Uppercase. |
#2
|
||||
|
||||
Pattern is invalid
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
You can check pattern in regex101 and it will tell you where the error is
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
Now good.
Code:
^[AА] |
#5
|
||||
|
||||
regular-expressions.info/unicode.html
__________________
JD-Dev & Server-Admin |
#6
|
|||
|
|||
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? |
#7
|
||||
|
||||
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 |
#8
|
|||
|
|||
An option would be useful, for simplicity as in most Text Editor it has:
Enabled/Disabled Case Sensitive -or- Match Case |
#9
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|