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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -