PowerShell String
Introduction to String in PowerShell As we have already discussed that PowerShell is build on .Net Framework. According to the .NET definition of string – “A string is a sequential collection of characters that is used to represent text”. The PowerShell string is simply an object of System.String type. How to Define String Anything mentioned within single quote or double quote considered as string in PowerShell. Only difference between the two is that strings in double quote support string expansion, while a single quote will only represent literal strings. Operations on String To find out what operation can be performed on string, Use Get-member command which will return all methods applicable to string. Length of String Length property will return the number of characters in string. Split Operations on String Split operation will divide string into multiple line from where split character is present. Lets take our environment...