English: https://neculaifantanaru.com/en/creating-a-batch-processing-powershell-with-regex-and-html-tags-parsing.html Romanian: https://neculaifantanaru.com/creating-a-batch-processing-powershell-with-regex-and-html-tags-parsing.html $sourcedir = "C:\Folder1\" $resultsdir = "C:\Folder1\" Get-ChildItem -Path $sourcedir -Filter *.html | ForEach-Object { $content = Get-Content -Path $_.FullName -Raw # Copy the content of the tag in the tags ABSTRACT, SUBJECT, OG:TITLE, HEADLINE, KEYWORDS # $replaceValue = (Select-String -InputObject $content -Pattern '(?<=).+(?=)').Matches.Value $content = $content -replace '(?<=