[Solved] PowerShell expression


It takes the contents of a file ‘InputName’, runs it through a regular expression and outputs it to the file ‘OutputName’.

The expression takes something in front of a comma, plus the comma itself and concatenates it with something that’s behind a double backslash, some text, a backslash, some text and another backslash.

So it looks like it can take something like

abc,\\server\folder1\test.txt

and convert it to

abc,test.txt

Try to get hold of actual input and output files and confirm.

solved PowerShell expression