We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大部分用户只有直连区域, 因此无需强制填写. 对于无云区域的IP, 自动补齐云区域前缀 0:.
0:
带云区域IP的正则表达式:
([0-9]+:)?(1?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])([.](1?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])){3}
测试:
s='1.1.1.1 0.0.0.0 1:1.1.1.1 255.255.255.255 256.1.1.1 00.1.1.1 ::1 ' patt="([0-9]+:)?(1?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])([.](1?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])){3}" echo "$s" | grep -wEo "$patt" 1.1.1.1 0.0.0.0 1:1.1.1.1 255.255.255.255 00.1.1.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
大部分用户只有直连区域, 因此无需强制填写.
对于无云区域的IP, 自动补齐云区域前缀
0:
.带云区域IP的正则表达式:
测试:
The text was updated successfully, but these errors were encountered: