fixed improper regex for [ and ]