regex : how to match word ending with parentheses ")"

Viewed 10451

I want to match string ending with ')' . I use pattern :

 "[)]\b" or ".*[)]\b"

It should match the string :

x=main2.addMenu('Edit')

But it doesn't work. What is wrong ?

3 Answers
Related