Question: How to split a string into multiple strings?

Hello everyone! I’m working on a small project right now and ran into an issue where I’m trying to take a string of 14 digits (12345678901234) and format it to something like (123-4567890-1234). I was wondering if there was a way to split the 14 digit string with regex, or another way of doing this, thanks! I’m a Kotlin noob by the way

submitted by /u/OMBERX
[link] [comments]