This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |