web stats
Mirth Community - View Single Post - Search for alpha characters and delete OBX
View Single Post
Old 05-13-2019, 12:34 PM
agermano agermano is offline
Mirth Guru
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,159
agermano is on a distinguished road

We posted at the same time Brad's second post addresses all of the issues I pointed out in a different way, but it still works.

match is probably more appropriate than search in this case. I wanted to show the indexOf equivalent that could take a regex.

Decrementing the loop index variable whenever you delete takes care of the issue where you would skip values when iterating forward and allows you to renumber the setID in the same loop without nesting.
Reply With Quote