Problem with $regexp and brackets

I know this has been brought up before, but wondering if there is a fix. I have the following expression, which should replace all open brackets with nothing:


As I understand, because "[" is a reserved character, it has to be surrounded in single quotes to parse correctly, which gives me this:


I also tried both of these.


None of these work. It seems that regardless of how I go about it, a "[" will always register as a special character within a regex, and there is no valid way to denote the character itself. Though I have a workaround for my specific case, it seems strange that there is no way to do this. Does anyone have any clues here?

It actually has to be the backslash to escape special characters:

or without regex:

1 Like

Ah, I was close! Much appreciated!