Lets say I have this string:
key something.key() (.key)(key)
I would like regex to only match the word "keys" that are inside "[ ]"
[key] something.key() (.key)([key])
I have used this regex currently /(?!\.)key/g
But that only excludes dot and still selects word even if it startet with a dot.