我想匹配到第一个":">
Servers:
auth4.localhostt2600:3c00::f03c:91ff:fe96:beac
auth1.dev.srv 2a00:1098:0:80:1000::10
除外:
Servers:
但我不仅得到了服务器,我还得到了如下ipv6地址:
Servers:
auth4.localhostt2600:
auth1.dev.srv 2a00:
当前Regex我正在使用
(^.*?[^:]):
我有一种与":"但不是IPv6地址?
提前谢谢。
我用以下方法实现了它:
^[^Srn]*?[^:.n]+?:
- 谢谢