I tested a lot of regular expressions in 101regex, but it doesn't match

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Debugger
Posts: 630
Joined: Thu Jan 26, 2017 11:56 am

I tested a lot of regular expressions in 101regex, but it doesn't match

Post by Debugger »

I tested a lot of regular expressions in 101regex, but it doesn't match.

麦龙 - 耿于怀(D阿 Electro Rmx 2024 粤语).mp3


Example, I want it to match:
耿于怀(Dj阿

OR

605-梦 - 爱的雨(Dj小 Electro Mix粤女)[www.website.com].mp3

I want it to match:
爱的雨(Dj小


^[^-]* - ([^()]+)\(([^)]+)\)
(?<= - )[^()]+\(([^)]+)\)
(?<= - )[^()]+(?=\()
^[^\(]*\(([^)]+)\)
\(([^)]+)\)
^\s*[^()]*\(([^)]+)\)
\(([^)]+)\)
\(([^)]+)\)
- ([^()]+?)\(([^)]*)
- ([^()]+?)\(([^)]+?)
- ([^()]+?)\(([^()]+?)\)
- ([^()]+?)\(([^)]+)
^.*? - ([^\(]+)\(([^)]+)
- (.*?)\(([^)]+)
^.*? - (.*?)\(([^)]+)
(.*?)\(([^)]+)
- (.*?)\(([^)]+)
- ([^\(]+)\(
- ([^\(]+\(.*?\)
\(([^)]+)
- ([^\(]+)\(
- ([^\(]+\([^\)]*)
- ([^\(]+\(.*?)
- ([^\(]+\(.*?)
(?<= - ).*?\(.*?
(?<= - )[^\(\n]+?\([^)]*\)
- ([^\(\n]+)\(([^)]*)\)
- ([^\(\[\]\n]+?)\(([^)]+?)\)
\((\p{L}+\s+\p{L}+(?=\))
^([^\(]+)\(([^)]+?)(?:\s+[^\)]+)?\)
\([^\)]+?(?:\s&\s[^\)]*)*\)


Edit:
This regex is the best, but not perfect, because it does not take into account two artist names


([^\(\s]+)\(([^)]+?)(?:\s|$)

付豪 - 借酒浇 (Dj.Yk耀 & Dj哥 Remix).mp3

I want it to match:
借酒浇 (Dj.Yk耀 & Dj哥
Post Reply