insert

insert is a method that will insert one string into another.

Syntax
      .Insert(IntStartIndex, String_value)

 

Example

PS C:\> $text = "Hello World"
PS C:\> $text = $text.Insert(6, "big ")
PS C:\> $text
Hello big World

“All animals are equal But some animals are more equal than others” ~ George Orwell, Animal Farm

Related PowerShell Cmdlets:

Replace(strOldChar, strNewChar)
Syntax - Methods


 
Copyright © SS64.com 1999-2019
Some rights reserved