3 lines
108 B
PowerShell
3 lines
108 B
PowerShell
$s -replace
|
|
('(.)' * $s.Length),
|
|
[string]::Join('', ($s.Length..1 | ForEach-Object { "`$$_" }))
|