Read-ReplaceString
PackageDeployment Module Help |
Package Deployment Module |
Read-ReplaceString Cmdlet |
Version 4.0.0.5 |
Read-ReplaceString
Synopsis
Replace within string
Syntax
Read-ReplaceString [-String] <String> [-Find] <String> [-Replace] <String> [-ContinueOnError] [-ResultVariable] <String> [<CommonParameters>]
Description
Searches for a set sub string in a string and replaces this sub string with another. If the search is not unique the string is replaced starting on the left and going forward.
Example: The string is AHAHAHA.
Search for AHA and Replace with NOO results in a string NOOHNOO.
Wildcards are not supported.
Parameters
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
-Find <String> |
||||||
Substring that is being sought. |
||||||
|
-Replace <String> |
||||||
The found substring is replaced with this string. |
||||||
|
-ResultVariable <String> |
||||||
A variable that collects the result. |
||||||
|
-String <String> |
||||||
The string in which characters should be replaced. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |