I need assistance matching two inputs, as shown in the example attached. I may have strings where the first three characters are constant and the last two characters vary. In these cases, when matching string pairs, if either one of them is present along with the remaining matched pairs, it is considered a match.
The second output in example is as expected.
@Nandy one way of doing this