2020年12月21日星期一

Adding a string in another string at X position

I want to create a function that adds a - on position 8, 12, 16, 20.

Example:

Original: 76684739331d422cb93e5057c112b637  New: 76684739-331d-422c-b93e-5057c112b637  

I have no clue on how to position it on multiple positions in a string which wouldn't look like spaghetti.

https://stackoverflow.com/questions/65402118/adding-a-string-in-another-string-at-x-position December 22, 2020 at 09:23AM

没有评论:

发表评论