How do I Add hyphen Between two even Number?

Hi

I have string As Following and I want to add hyphen Between Two even number only.

i.e. 2456782

Output: 2-45678-2

i.e. 2468

Output: 2-4-6-8

Thanks

can you check this regex / replace approach

[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.