构建此音乐曲目的列表的正确 RegEx 模式是什么?

What would be the correct RegEx pattern to build a list of this music tracks?

这是我正在处理的字符串(html 文件的一部分):

"Tracklist:01. Jai Uttal & Ben Leinbach - Govinda (Holmes Ives Remix)02. Edu Imbernon & Los Suruba - Fayer 03. Hankat - Be The First (Rosenstand Remix)04. Matthias Vogt - Seven Summits05. Mike Dem & Richfield feat. Sowelu - I Got My Soul06. Stergios - City Groove07. Roman Flügel - Teenage Engineering08. Mario Basanov feat. Monica Liu - Move On09. Rufus T - Dreamwork10. Arctic Lake - For Us (Huxley Remix)11. Chew Fu feat. Steve Clisby - Purple Rain (Mousse T's Home A Lone Mix)12. Ryan Davis - Brun (Matthias Meyer Remix)13. Martin Waslewski - Rasberry Heaven"

我找不到与 findall() 关联的正则表达式会给我:

[01. Jai Uttal & Ben Leinbach - Govinda (Holmes Ives Remix),02. Edu Imbernon & Los Suruba - Fayer ,03. Hankat - Be The First (Rosenstand Remix),04. Matthias Vogt - Seven Summits,05. Mike Dem & Richfield feat. Sowelu - I Got My Soul,06. Stergios - City Groove,07. Roman Flügel - Teenage Engineering,08. Mario Basanov feat. Monica Liu - Move On,09. Rufus T - Dreamwork10. Arctic Lake - For Us (Huxley Remix),11. Chew Fu feat. Steve Clisby - Purple Rain (Mousse T's Home A Lone Mix),12. Ryan Davis - Brun (Matthias Meyer Remix),13. Martin Waslewski - Rasberry Heaven ]

我得到了 r('\d{2}\.\s{2}....') 但在 \s{2} 之后我找不到任何有效的模式。

如有任何帮助,我们将不胜感激。

我试过了。我认为这将帮助您找到所有内容。

/\d{2}.*/

此正则表达式将匹配每首曲目并且 return 所有曲目。检查 demo。如果标题中有数字(只要后面没有点),它也有效。

/\d{2}\.\s+.+?(?=\d{2}\.|$)/g