I'm trying to write a Powershell script that will pull out a string between two HTML tags within an HTML file. I don't know what the value will be, but I know what tags need to be searched. Additionally, I know that the tags do not always appear at the start of a line (i.e., they can be in the middle of a line of text). Finally, I also know that the tags and the string between them will never break across a line.
I have the path of the file stored in a variable
$filePath = "C:\Path\file.html"
I'm trying to find any value between <h6> and </h6> and store those values in an array.