I have a text with variables like [abcderere]
.
In order to detect those variables i decided to create the following regex :
(\[.+?\])
It does work with string like [azerty][qwerty]
but I want my regex to also detect String like [[azerty]
because it matches the pattern but it doesn't work