powershell:qnd:strings

strings

  • `n and `r are the character literals for newline and carriage return

Common Command Examples

Using string Replace method to remove substring from string

$url = "http://www.google.com".Replace("http://www.", "")$url
google.com
  • powershell/qnd/strings.txt
  • Last modified: 2022/06/16 18:02
  • by mgupton