1. 常用的正则
1.1 URL地址
/((http|https):\/\/([\w\-]+\.)+[\w\-]+(\/[\w\u4e00-\u9fa5\-\.\/?\@\%\!\&=\+\~\:\#\;\,]*)?)/ig
1.2 手机号验证
/^1[34578]\d{9}$/
2024-02-19 17:15:46
/((http|https):\/\/([\w\-]+\.)+[\w\-]+(\/[\w\u4e00-\u9fa5\-\.\/?\@\%\!\&=\+\~\:\#\;\,]*)?)/ig
/^1[34578]\d{9}$/
下一篇:文本数据清洗