Complete all todos by implementing regex logic