I need to parse a lot of html files in order to know which ones contain specific text within title tag.
Let's suppose that titles are
file1.htm
<title>100 text other text</title>
file2.htm
<title>text 100 text other text</title>
file3.htm
<title>text 1000 text other text</title>
file4.htm
<title>text one hundred text other text</title>
Following my example I need to find files name that contain 100 or one hundred, that is files 1,2 and 4.
My problem is that I don't know how to write regular expression
gci "c:\my_folder" | ? {$_.extension -eq ".htm"} |
select-string -pattern '<title>*100*</title>' |
Select-Object -Unique Path
Please note, if this may be important for regexp, that title tag is not at the beginning of a row but in the middle. Thanks in advance.