Let’s assume you need to split a text using a fixed width. For example, if you needed the first 5 character of a text, plus the remainder, how would you do this?
Most PowerShell users would probably use string methods like these:
$text = 'ID12:Here is the text'
$prefix = $text.Substring(0,5)
$suffix = $text.Substring(5)
Of course, if you had a split character such as “:”, you could also…