in reply to Matching parenthesis in a string

If you want to do exact matching, probably the simplest is to use index(). Or to "quote meta" your search pattern, with either quotemeta or \Q .. \E.

Abigail