I have two strings:
[config.OPERATOR_ROLE][config.MENEGER_ROLE]
I'm want replace it to
{config.OPERATOR_ROLE}{config.OPERATOR_ROLE}
So I created a pattern \[config.*ROLE] which selecting all cases, but it replaces a pattern also, so my text going to be \{config.*ROLE}. How I can exclude part of pattern from replcaing?