Quantcast
Channel: voidtools forum
Viewing all articles
Browse latest Browse all 327

General • Regex issue Chinese / English problem VERY COMPLEX

$
0
0
Name search problem (complex regular expressions)
I have written many regexes, tested an 101Regex but it still does not find what I expect

I want to match file names with the following criteria:

Code:

Files start with  Example:【DU独】任【DU独】萧【DU独】张
A Chinese (NOT ENGLISH!) character as part of the artist's name follows.
In the name is the name of the artist and I want the year 2022, or 2023 or 2024 to choose one year I want to know)
The file extension is .mp3.

Regex matches 35 or 41 names, for example, but does not match all of them

Code:

【DU独】([^】]+) - .+\(DjB Electro Rmx 2022\).mp3【DU独】[\u4e00-\u9fff]+ - .+\(DjB Electro Rmx 2022\)\.mp3【DU独】.*[\u4e00-\u9fff]+.*\(DjB Electro Rmx 2022( [\u4e00-\u9fff]+)?\)\.mp3
If I am looking for a more advanced way to match Chinese characters in file names, it can indeed be a challenge, especially because of the variety of characters in Chinese of different spaces and Unicode :(

Statistics: Posted by Debugger — Wed Apr 24, 2024 9:52 am



Viewing all articles
Browse latest Browse all 327

Trending Articles