Hi, Below is the input details with header "BalancePool". It contains data separated by underscore. 3rd part after second underscore, if a number contains starting with zeros must come output without zeros and if 3rd part after second underscore, if it has number with hyphen and starting with zero must include zeros as it is. if the 3rd part contains text then the output is text. Please refer to second table below for output requirement. Please assist
| Below is input details |
| BalancePool |
| PBY_BBIP_0002673854 |
| PBY_BBIP_001-035112-371 |
| PBY_BBIP_001-035112-371 |
| PBY_BBIP_IRL |
| PBY_BBIP_IRL |
| PBY_BBIP_IRL |
| PBY_BBIP_IRL |
| PBY_BBIP_IRL |
| PBY_BBIP_IRL |
| PBY_BBPLC_5101-04051/02 |
| Required out put | | |
| Code | ID | Preference |
| PBY | BBIP | 2673854 |
| PBY | BBIP | 001-035112-371 |
| PBY | BBIP | 001-035112-371 |
| PBY | BBIP | IRL |
| PBY | BBIP | IRL |
| PBY | BBIP | IRL |
| PBY | BBIP | IRL |
| PBY | BBIP | IRL |
| PBY | BBIP | IRL |
| PBY | BBPLC | 5101-04051/02 |