...
Code Block | ||
---|---|---|
| ||
function HL7Normalize(Msg) local Result = Msg -- Get the | delimiter local D= Msg:sub(4,4) Result:gsub(D, "|") -- Repeat for the other 4 delimeters return Result end |
Solve a one off problem uncommon problems with a one off simple piece of code solutions - see separation of concerns.