Found the solution on the thread link undermentioned:
I have changed the multiline pattern as below:
^\d{4}/\d{2}/\d{2}