正则表达式跳过行

Regex skipping lines

这是我的示例文本和正则表达式

Regex101

我想匹配数字、类别、"What is the specific role or function of this server?:"、"Server Hostname:" 等之后的文本。但是,如果使用的文本发生变化,我现在使用的方法将无法正常工作。我希望它是动态的,以便它可以跳过尽可能多的 lines/characters 以到达下一场比赛。

我目前正在使用以下正则表达式:

Number\:\s(?<Number>\d+)[\r\n]Category\:\s(?<Category>.*).*[\r\n].*[\r\n].*[\r\n]What\sis\sthe\sspecific\srole\sor\sfunction\sof\sthis\sserver\?\:\s(?<Function>.*).*[\r\n].*[\r\n].*[\r\n].*[\r\n].*[\r\n].*[\r\n].*[\r\n].*[\r\n].*[\r\n].*[\r\n]Server\sHostname\:\s(?<Hostname>.*).*[\r\n]Server\sAllegiance\:\s(?<Domain>.*).*[\r\n].*[\r\n]Physical\sLocation\:\s(?<Location>.*).*[\r\n].*[\r\n].*[\r\n].*[\r\n].*[\r\n]Local\sAdministrators\:\s+([\w\s]+)[\r\n].*[\r\n].*[\r\n]Task\sDescription\:\s(?<Task>.*)

我知道我知道,丑!

[\r\n]Number\:\s(?<Number>\d+)|.*[\r\n]Category\:\s(?<Category>.*)[\r\n]|[\r\n]What.*specific.*\:\s(?<Function>.*)

等...