How can I have the output of the following text only show the text in the quotes (without the quotes)?
Sample text\"
this is an \"apple\". it is red this
Just another way using regex:
appcmd list apppool | % { [regex]::match( $_ , '(?<=")(.+)(?=")' ) } | select -expa value
or
appcmd list apppool | % { ([regex]::match( $_ , '(?<=")(.+)(?=")' )).value }