📅  最后修改于: 2022-03-11 14:48:40.897000             🧑  作者: Mango
string myString = "hi there\ IP:127.0.0.1"
string toBeSearched = "IP:";
string ipaddr = myString.Substring(myString.IndexOf(toBeSearched) + toBeSearched.Length);