驗證網址:https://www.regextester.com/22 const ipRegex = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.) {3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/; const portRegex = /^([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}| 65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/;
- Apr 04 Thu 2019 16:50
-
[JavaScript] 正則表達式 IP Port
請先 登入 以發表留言。