insert

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

Syntax
      .Insert(IntStartIndex, String_value)

 

Examples

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 © 1999-2024 SS64.com
Some rights reserved