added solution for last regex problem