< Back

Get-StringWithWhitespaceReplaced

Sat Jan 11, 2020 2:42 pm

NAME Get-StringWithWhitespaceReplaced



SYNOPSIS

This function returns a string, which is the result of replacing all the whitespace characters in the input string

with a given string.





SYNTAX

Get-StringWithWhitespaceReplaced [-string] <String> [[-replacedBy] <String>] [<CommonParameters>]





DESCRIPTION

This function returns a string, which is the result of replacing all the whitespace characters in the input string

with a given string.

If the original string contains successive whitespace characters like "`r`n", they will only be replaced by one

string.

The default replacement string is a space.





PARAMETERS

-string <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-replacedBy <String>



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.String







RELATED LINKS