Hi All,
I am having a HTML Report file. Raw file is here
I need to extract the number(count) of OK and Failure . For example :
Failure : 1
OK : 43
Kindly provide me with any solution or regex for this.
Hi All,
I am having a HTML Report file. Raw file is here
I need to extract the number(count) of OK and Failure . For example :
Failure : 1
OK : 43
Kindly provide me with any solution or regex for this.
$c = gc D:\Downloads\Test.html [regex]::matches($c,'ok').Count [regex]::matches($c,'Failure').Count
Load the web page text in a variable, $html.
([regex]::matches($html, ">okfailure<", "IgnoreCase")).count