Patching the regex for the [[]]