I have following issue:
I have a string, like $word ='ABC.DEF.GHI'
I want to split this String into an array at the dot and add a string instead. Desired outcome would be like:
$arrayWordSplitted = 'ABC 123; DEF 123; GHI 123'
with $arrayWordSplitted[0] = 'ABC 123'
I tried the .split()- Method but I can't add for every element with this.
I tried something like this:$wordSplitted = $word.split('.') + '123'
But I get $wordSplitted='ABC; DEF; GHI; 123
How to split and add for all elements in powershell?