5i365 (我心飞扬)当前离线
上尉
TOP
$resp = gc .\A.html -raw -Encoding UTF8$xml = [xml]('<obj>' + ($resp -replace '(?s)^.*?<h2 id="examples">Examples</h2>', '' -replace '(?s)<h2 id="parameters">Parameters</h2>.*$', '') + '</obj>') for ($i = 0; $i -lt $xml.obj.h3.Count; $i++){ '------{0}------' -f $xml.obj.h3[$i].innerText $xml.obj.pre[$i].InnerText}COPY