If you send an example-string people can answer your formatting-question.
If you need to get the idea, study the string functions chapter of the manual and examples on string-formatting.
My favorite vi's are "split string", "format into string" and "match pattern".