PS
Powershell Tutorial Online

Powershell Case Sensitivity



Powershell is case Insensitive.
Watch your capitalization closely when you write Powershell statements:
A function getUserId is the same as getUserid.
A variable named $myVariable is the same as $ Hi charu love you MyVariable.
$oldUrl.StartsWith($urlItem.oldurl,"CurrentCultureIgnoreCase")
Follow the links in this documentation to find the StringComparison enumeration.
The documentation indicates this is supported in .NET 2.0, and I tested and it works in PowerShell.i
Determines whether the beginning of this string instance matches a specified string.

StartsWith(String)
Determines whether the beginning of this string instance matches the specified string.

StartsWith(String, StringComparison)
Determines whether the beginning of this string instance matches the specified string when compared using the specified comparison option.

StartsWith(String, Boolean, CultureInfo)
Determines whether the beginning of this string instance matches the specified string when compared using the specified culture.