| external help file | Module Name | online version | schema |
|---|---|---|---|
Elizium.Loopz-help.xml |
Elizium.Loopz |
2.0.0 |
Removes a sub-string from the target string provided.
Edit-RemoveSingleSubString [-Target <String>] [-Subtract <String>] [-Insensitive] [-Last] [<CommonParameters>]Edit-RemoveSingleSubString [-Last] [<CommonParameters>]Either the first or the last occurrence of a single substring can be removed depending on whether the Last flag has been set.
$result = edit-RemoveSingleSubString -Target "Twilight and Willow's excellent adventure" -Subtract "excellent ";Returns "Twilight and Willow's adventure"
Flag to indicate if the search is case sensitive or not. By default, search is case sensitive.
Type: SwitchParameter
Parameter Sets: Single
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseFlag to indicate whether the last occurrence of a sub string is to be removed from the Target.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe sub string to subtract from the Target.
Type: String
Parameter Sets: Single
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe string from which the subtraction is to occur.
Type: String
Parameter Sets: Single
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.