5i365 (我心飞扬)当前离线
上尉
$c = "get-Content" ((get-help $c -Examples | Out-String) -split '\n') | foreach { $_.trim() } | sls ".+Example\s\d:.+"复制代码
went 当前离线
少校
cls $r = Invoke-WebRequest -Uri ((gcm sc).HelpUri) $r.ParsedHtml.getElementsByTagName('h3') | Where-Object { $_.id -match '^example' } | foreach { '------{0}------' -f $_.innerText $ele = $_ while($ele.tagName -ne 'PRE'){ $ele = $ele.nextSibling } $ele.innerText }复制代码
评分人数
TOP
cls $r = Invoke-WebRequest -Uri ((gcm sc).HelpUri) $r.ParsedHtml.getElementsByTagName('h3') | Where-Object { $_.id -match '^example' } | foreach { '------{0}------' -f $_.innerText $_.nextSibling.nextSibling.innerText }复制代码
idwma 当前离线
$c = "get-Content" [regex]::matches($(get-help $c -Examples | Out-String),'(.+Example\s\d:.+\n\s*\n[\s\S]*?)\n\s*\n')|%{$_.groups[1].value}复制代码