fixed regex after professor's example