Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: dglavastormHi, I need a way to remove all text up to the word "NOTES", leaving all text following that in tact. "NOTES" can appear anywhere in the text but is system generated so always present.
Examples below with header "NOTES" and three fields-
NOTES
requestId:n_20140211|ACBID:471153333|NOTES:xxxxxy
requestId:n_20140210|CPN:0418335555|ACBID:46994952 |NOTES:Agent Callback about 0418337820 INFO - xxxxxxxxxxxyyyyyyyyy
requestId:n_20140215|FNN:0418775555|ACBID:46994952 |GNN: NO|NOTES:Agent Callback about 0418337820 INFO - xxxxxxxxxxxyyyyyyyyy
So end result is
NOTES
NOTES:xxxxxy
NOTES:Agent Callback about 0418337820 INFO - xxxxxxxxxxxyyyyyyyyy
NOTES:Agent Callback about 0418337820 INFO - xxxxxxxxxxxyyyyyyyyyzzzzzzz zzzz zzzzz
I've tried the "Replace Text" node and using a Filter node with regexSubtitute and can make it remove set text, but I can't find any help on how to find text in a string and delete all before it.
eg. - New = CTIDATA_AACB.regexSubstituteI("NOTES","")
Desperate Thanks,
Dave