You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Group 0: 全部的年份文字
Group 1: 西元 民國 或 undefined
Group 2: 前 或 undefined
Group 3: 年份,會自動抓年後面的一個非數字,例如年代、年底之類的
Group 4: 月份,會自動抓月後面的一個非數字,例如月初、月底之類的
Group 5: 日期
// Real parser
// Phase 1: Find summary start at year, end with specific html tag
pattern = /(<a[^>]+>)?(西元)?([1-2][0-9]{3}年?)?(-|-|~|~)?([1-2]?[0-9]{3}(<\/[^>]+>)?(年代|年|底)(<\/[^>]+>)?([0-9]{1,2}月(<\/[^>]+>)?|)([0-9]{1,2}日|)).+(<\/(li|p|div|ul)>)/g;
http://fact.g0v.tw/wiki/729%E5%85%A8%E5%8F%B0%E5%A4%A7%E5%81%9C%E9%9B%BB
記錄一下。
The text was updated successfully, but these errors were encountered: