I have a log file with below contents and I need to replace everything after a match inclusive of the match criteria as well using powershell script
Log File:
- ABCD,1234,12 Percent (Total: 12 / 100) - DEFG,1234,32 Percent (Total: 32 / 100) - HIJK,1234,77 Percent (Total: 77 / 100) - QWER,1234, (Total: 77 / 100)
I would like to get output like below
- ABCD,1234,12 Percent - DEFG,1234,32 Percent - HIJK,1234,77 Percent - QWER,1234,0 Percent
I tried regex commands which replaces but not inclusive of the match criteria in powershell and substring never worked too
Thanks
