I am doing a HL7 data transformation with object script but need to only write a substring from the first "(" of the NTE-3 field to the end.
Input: NTE|1|||Some text (HI) (321)|ABC
Desired Output: NTE|1|||(HI) (321)|ABC
Basically I'd like to delete "Some text ".
If I were writing a shell script I would use sed 's/^.*(/(/' with perhaps a modification to get only the first.
I use the function wizard but can't seem to get the right code.