使用powershell搜索網頁的某個字符

Image

Image(137)

Image(138)

Image(139)

繼續篩選裏面的文本:ide

Image(140)

篩選完畢:blog

Image(141)

咱們只須要一個「97%」字符能夠看到有這麼多get

Image(142)

咱們只須要第一個:it

Image(143)

好結果已經出來了 可是若是咱們想把這個結果推到好比zabbix是會不會識別的 咱們還須要處理一下這個結果io

咱們能夠使用替換class

Image(144)

可是百分比值咱們是沒法預知的因此最好使用替換預知的字符。im

Image(145)

好了」97「就是咱們須要的值啦哈哈!d3

Image(146)

相關文章
相關標籤/搜索