@Rahul, you can try to search in the web regarding this query in the regular expression forums to fetch the string between last 2 pipes or try to go through the regular expression documentation for constructing the expression. I will also try to research on this and let you know if i can find one.
Thank you for posting your query on PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s at the top right of this screen or on our Pega Support Community homepage. Once created, please reply back here with the URL of the new post.
We have also sent you a private message opening up a communication channel in case you have any further questions.