homeworks for regex