fixing regex on status code script