What are your rules to transform the input string to the output string?
I don't see any obvious connection, so can't help much.
Once you've sorted out the rules then I'd use split,length & join
In reply to Re: How to format such a string?
by RichardK
in thread How to format such a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |