How to write a macro to the q register by typing qq3f|a|<ESC>q in command mode (ESC means pressing the Escape key). Now you can apply this macro to each line :% norm@q .
Extra bonus:
Using this template, you can add more complex actions, for example, replicate the first column as column 3 (if the cursor is in the first column):
qqf yf|;;;p0q
Oh, and the answer to your question: search for the 4th occurrence | the line runs 3f| (if the cursor is at position 0 and on the symbol | , as in your example).
hochl source share