Skip to content

Instantly share code, notes, and snippets.

View corningsun's full-sized avatar

Corning Sun corningsun

View GitHub Profile
@corningsun
corningsun / java
Created December 30, 2020 10:00
v2ex-Reply39
package com.corning.v2;
public class Reply39 {
public static void main(String[] args) throws Exception {
String[] wA = new String[]{"0", "0", "0", "0", "0", "0", "0"};
new Reply39().hello("0", wA[0], wA[1], wA[2], wA[3], wA[4], wA[5], wA[6]);
// hello
new Reply39().hello("3", wA[0], wA[1], wA[2], wA[3], wA[4], wA[5], wA[6]);
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# https://www.v2ex.com/t/619370#;
if __name__ == '__main__':
# 我现在想通过 110.1.172.32 这个字符串 匹配到 object-group network 后面的 ShangHai 这个关键词, 请问正则怎么写? 感谢各位大佬
text = """
network-object host 109.17.49.131
object-group network KaGuan_12