[Solved] How can I output the matching portion of two strings, while having the % character separate any non-consecutively matching portions?

[ad_1]

How can I output the matching portion of two strings, while having the % character separate any non-consecutively matching portions?

[ad_2]

solved How can I output the matching portion of two strings, while having the % character separate any non-consecutively matching portions?