Akshay,
There are more than one ways to do this, but before I jump into explaining, can you confirm that your string can have max 2 occurrences of | and you have to get rid of the string after second | or can there be multiple occurrences of pipe and you have to get rid of every third string?
eg can your string be: GB|0923774|385763|GB|4523223|7873234
and desired output is: GB|0923774|GB|4523223
or will it always be only like: GB|0923774|385763 requiring output to be
GB|0923774?
Obviously the latter is much simpler to achieve.
~ Rohit
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods