remove [] from regex