$colors = 30..37 | ForEach-Object { "$([char] 27)[${_}m" }
$counter = @{ Value = 0 }
[regex]::Replace('hello world!', '(?=.)',
{ $colors[$counter.Value++ % $colors.Count] }) + "$([char] 27)[0m"
H4sIAAAAAAAEAG1VTc7bNhDdC9Ad5gCOrxAkm+YDWnSRAEWWI2kkMaY4KklZ8a7X6PV6krwhLdsf0IUFi56fN++9od9o1zBIPNHb4xvtM2e66YaTzQ80KLmxvM88UJ6FVt0lUlYaovBCiA5umvOJONzuZyWdQ5ahbY7AM30Kw0thHanXLSahTog7L1aSfUZtBKGBW+RDkoAARmLybj1R4hsluUrItw+juwrdhGNCrbZJW/dD+myHlkouoJ4YMpqtjzVMXmQ9t03bfD9w2OxpW1dNgvKZYybdMnU3Gjc/Ou9dmADLV1C7S7OkM1l6X/mR5KZAo1bYSfxYKaxTdgIGQNqiKRPgcXY9eTfKmX5XQOVxZBfTiToOf2+S8W3g0FvTyUWP1yoMwNAP1A9yQ/vfOA5g5kTLllCvkxuC2qYT72SsRKNpgCSj8cmGdQXDoGDRkOdCRp5doqQ2cHmxOfPBLr2wy1Vgm++/f/4FFTbUJDmXFEyTs6nHKUvhIekitd7gxlEi6hUJn9ovNjo+xUYciAdrukXdEnIWjOY0tM0+I9kmwXO3Ry8xswtG0SRA5sJV/VWGUt5oznOEZDbQIFyk212ej/inBat2UVK/YZY1utBLSpJojLrArzxpuIdPSnp0NHxPFf7gi7zIIz9XrwY8FTid190wLW2zrbVUoXaDmW4E+qpDe+gh8EbBKUEWJ/fGVbtKOugaNNh8kOjguPq8BgxFwYv1Mr1kpx1DXTx89k0twxrmx2obmWUrjaKkL78UYkotckDFqZjfWiLc372lxQIcfjpjhDvbGJfP9Fl63rCwLhdIWGzUnpCISvDj/V4Aawcj+Ti1xd4FnbzDz/3sPOAFZGnbDAy0wv1Mal4wOYq94P8ZHI8cy8pWTa0YZv1If8aXk1yksiEf9jKTdGLzQ7V8ahu8M7YQPCMC15mOdefLfXf6n+xC2rMHLo937uJ0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