fixed regex error for auto completion