remove groups from regexp