I need an regular expression to match, in a sentence, words within brackets. For example:

```
"this is [stack]overflow. I [[love]this[website]]."

```

what i want to match from the sentence above are the words stack, love and website.

I've tried the folowing regexp `\[(.*[^\]\[])\]` but it doesn't work.