Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「Joe Soap は 1981 年 2 月 12 日に生まれた」などの任意の文字列から日付を抽出するにはどうすればよいですか?
Python には、この質問python-dateutilで説明されているように、によって提供される素晴らしいファジー解析機能があります。
python-dateutil
PHP で同じタイプの機能を提供するライブラリを探しています。
date_parseについて はどうでしょうか。ただし、日付形式がわかっている場合は、正規表現を使用して必要なものを取得してください。