The aim of this regex is to extract only the Nth field from a delimited string.
In the example provided the delimited is the pipe character.
You will have to substitute the pipe character for whatever delimiter you are using.