command line - remove or ignore double quotes in a string - powershell -
i think have simple problem can't seem find answer.
this part of string working with
$text = "independent electoral , boundaries commission polling station: "abc def ghijkl (001)" stream:123"
when try work this, error because of double quotes in $text. know can escape double quotes using tick, entire string big me go through all.
i wonder if there simple way ignore or remove double (and single, too) quotes except first , last.
you can solve using here-strings:
$text = @' symbols i/ can ` hope between " *>$ opening $() , closing ${} of symbols '@
Comments
Post a Comment