Trim extra pipes off end of text file in Windows
问题 So basically I have a process that outputs a text file that is pipe delimited, looks something like this: |abc123|1*|004|**gobbligook|001|%|2014-01-01||||||||||||| This is just an example, and I'm not sure if the answer involves regular expressions. If it does i will put the actual line. Anyways ISSUE So for this example the import process that accepts this file is looking for 8 pipes, but there are 20, if it sees any more pipes after the 8 it's looking for the import process fails. Question