I’m getting the following value from a vendor in PID;3 – 000225^^^^MR~123455698^^^^SS – all I want is 000225, the actual MRN – any ideas? I’ve tried variations of reexp, regsub and even csubstr to no avail
if you only want the first value. The .[0] at the end addresses the first subcomponent.
If you are using tcl, you can work thru splitting the message down to the subcomponent and grab the first subcomponent of PID:3 and replace the PID:3 value with this value only before putting the message back together to sending on.