remove } from regexp