Fixed the first and last day issue in regex