Include:
En - 间 (Summer).mp3
Exclude:
政香 - 香烟火柴 (Dj柳).mp3
|
#1
|
|||
|
|||
Regex Chinese/English issue
What regular expression for a file name beginning with A-Z excluding the beginning of a Chinese letter?
Looking for (File Name / Downlaods and LinkGrabber) My expression doesn't work perfectly because it ignores all Chinese. It seems to be very complicated. English "Artist" - "Title" English/Chinese(mixed language) Code:
^[A-Za-z][^一-龯]*$
Spoiler:
Include:
En - 间 (Summer).mp3 Exclude: 政香 - 香烟火柴 (Dj柳).mp3 This also ignores most Chinese, but also only includes some correctly: Code:
^(?![一-龯])[A-Za-z] Last edited by Student im ersten Jahr; 10.08.2023 at 21:50. |
#2
|
||||
|
||||
because its a range, outside of your range wont be covered. For example in english b-z wouldn't include 'a' so you need to know the start of the range.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
||||
|
||||
@Student im ersten Jahr
We're still not here to teach anyone how regular expressions work. Learn them on your own and use webtools like regex101.com to test them. Thread closed.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|