Trying to escape parenthesis in a -replace statement.

I’m trying to replace brackets in a statement that will remove the parenthesis but the parenthesis are throwing it off, I’ve tried several different methods of encapsulating it.

here is an example.

$ProgramName = “Adobe Acrobat (18.0)

$ProgramName = $ProgramName -replace ‘(‘,”” -Replace ‘)’,””

How can I escape the parenthesis so that I can strip them off of the variable?

submitted by /u/Dubstep_Hotdog
[link] [comments]

Leave a Reply