I have a comment column that can contain 0 or more comments within the single field. The comments within one record are pipe delimited. Each comment follows a structure of "date (name) - comment". I need to figure out which comments are valid depending on whether the name contains "ADMIN" and then display the comment text only along with the pipe deliminater. I cant figure out how to accomplish this in Aleryx. I've thought of iterative macros and regular expressions but cant come up with a clean solution. Below is an example of input and expected output. Is this possible?
| input | output |
| 05/16/2018 12:33 PM EDT -(USER) Canceled. |10/26/2018 07:28 PM EDT - (LOCPADMIN) this is an admin comment1 |10/27/2018 07:28 PM EDT - (LOCPADMIN) this is an admin comment2 |10/30/2018 07:28 PM EDT - (LBDADMIN) This is an admin comment3| | this is an admin comment1 | this is an admin comment2 | This is an admin comment3| |
| 04/25/2018 12:06 PM EDT - (BOBB) Alphabet soup is delicious| | |
| 10/26/2018 07:30 PM EDT - (LOCPADMIN) Alteryx is great| | Alteryx is great| |