What I need to be able do is format data in a variable, like so:
format: xxx-xxx variable: 123456 output: 123-456
The problem is I need to be able to change the format, so a static solution wouldn't work. I also like to be able to change the variable size, like:
format: xxx-xxx variable: 1234 output: 1-234
All ideas are welcome! Thanks for your help!
Note: All of the variables will be numbers
Edit I should have been clear on the format its not going to always be grouping of 3, and it may have more then "-" as a symbol, the groups will be inconstant 1-22-333-4444 it will only be in grouping of 1-5