powershell -match fails

Ronald Clifford 21 Reputation points
2022-07-09T03:55:10.357+00:00

I've been running this powershell script most of the night fixing the display of data.
All of a sudden the if ($line -match "tool_path") statement is failing to match. I even
write-host $line for every line. toolpath was written to the screen.
Why is this failing.
What the heck is a tag???

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,627 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.