updated regexp for title and date attribute