I am trying to write a Powershell script that will pull a line between two HTML tags in an HTML file. I donβt know what value will be, but I know what tags to look for. In addition, I know that tags do not always appear at the beginning of a line (i.e., they can be in the middle of a line of text). Finally, I also know that tags and the string between them will never be split into a string.
I have a path to a file stored in a variable
$filePath = "C:\Path\file.html"
I am trying to find any value between <h6> and </h6> and store these values ββin an array.
source share