0
我已經看到了這個問題的答案:Modify regex to match dates with ordinals "st", "nd", "rd", "th" 但我需要它的Perl格式。修改正則表達式來匹配日期與序號「st」,「nd」,「rd」,「th」
此外,這隻解析2004年1月1日。我需要一個正則表達式,可以解析2004年1月1日,2004年1月1日或2004年1月1日。我很新的正則表達式,所以不知道如何得到這個。
這僅適用於英文日期,並且需要適用於1月/ 1月。
任何信息都將有所幫助。
謝謝