Hi,
I would like to remove certain values in the PID3 segment. For example, I have this:
M0000001^^^&&ISO^MR^&&ISO~123-45-6789^^^&&ISO^SS^&&ISO~WITTVIF0000003^^^&&ISO^XX^&& ISO
What I want to do is loop through PID3 and if PID3.5 equals "MR" or "SS", I want to keep that entry in there. If it equals anything else, I want to remove it. So for the example above, I want to keep:
M0000001^^^&&ISO^MR^&&ISO~123-45-6789^^^&&ISO^SS^&&ISO
I have tried somethings but it is deleting the entire segment and not just the repetition that I want to remove. Thanks in advance.
I would like to remove certain values in the PID3 segment. For example, I have this:
M0000001^^^&&ISO^MR^&&ISO~123-45-6789^^^&&ISO^SS^&&ISO~WITTVIF0000003^^^&&ISO^XX^&& ISO
What I want to do is loop through PID3 and if PID3.5 equals "MR" or "SS", I want to keep that entry in there. If it equals anything else, I want to remove it. So for the example above, I want to keep:
M0000001^^^&&ISO^MR^&&ISO~123-45-6789^^^&&ISO^SS^&&ISO
I have tried somethings but it is deleting the entire segment and not just the repetition that I want to remove. Thanks in advance.
Removing specific PID3 Entries
0 commentaires:
Enregistrer un commentaire