我正在使用Grafana仪表板。我有以下服务器:
ip-10-2-32-214.ec2.internal
ip-10-2-33-184.ec2.internal
ip-10-2-34-13.ec2.internal
ip-10-2-34-213.ec2.internal
ip-10-2-36-165.ec2.internal
ip-10-2-36-219.ec2.internal
ip-10-2-36-77.ec2.internal
ip-10-2-37-79.ec2.internal
ip-10-2-38-252.ec2.internal
ip-10-2-39-216.ec2.internal
ip-10-2-40-242.ec2.internal
ip-10-2-40-52.ec2.internal
ip-10-2-43-220.ec2.internal
ip-10-2-44-192.ec2.internal
ip-10-2-45-148.ec2.internal
ip-10-2-46-215.ec2.internal
ip-10-2-47-152.ec2.internal
ip-10-2-48-91.ec2.internal
ip-10-2-49-237.ec2.internal
ip-10-2-50-200.ec2.internal
ip-10-2-52-49.ec2.internal
ip-10-2-53-14.ec2.internal
ip-10-2-56-137.ec2.internal
ip-10-2-57-108.ec2.internal
ip-10-2-60-105.ec2.internal
ip-10-2-61-250.ec2.internal
ip-10-2-63-177.ec2.internal
但是我只想匹配以这些数字结尾的服务器:
184|200|165|220|237|137|242|(.ec2.internal)
如您所见,我尝试过此正则表达式,但无法正常工作。
答案 0 :(得分:0)
为我工作184 | 200 | 165 | 220 | 237 | 137 | 242