我完全不知道这里发生了什么,所以我把它交给云端思维来弄清楚,抱歉。
我有一个string
(已确认.gettype()
),其摘录如下(每行末尾都有 \r\n):
Request Inputs
Inputs With Value
Displaying 17 out of 19 inputs
Company Division
<my company name>
但是,当按照下面的模式运行时,无法弄清楚为什么会产生System.Collections.Hastable[1]
。$Matches[1]
最主要的是,它是空的。为什么?
$TextBoxText -match '(?s).*(?:Company Division[\r\n])([^\r\n]*)'