I want to extract date from several HTML documents. The date always follow this pattern:
- Starting three alphabets of month with first character in uppercase i-e Jan.
- Two digit numerical characters of day of the month i-e 09
- A comma as a separater
- Four digit numerical characters of year i-e 2022.
Sample of complete date is Jan 09, 2022
I want to extract only those dates which are wraped in span tags. So, the complete pattern is
<span>Jan 09, 2022</span>
I am not good at writing preg_match. Can anyone please help me?