How to extract the IP of the string below using RegEx?
... sid [1544764] srv [CFT256] remip [10.0.128.31] fwf []...
I tried the code below but did not return the expected value:
string pattern = @"remip [.]";
MatchCollection mc = Regex.Matches(stringToSearch, pattern );
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…