Share via

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 for business | Windows Server | User experience | PowerShell

Your answer

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