How to extract a string from a string in c# -


vs 2015, c#. have string...

string str = "name;ipaddress"; 

i want extract ipaddress. suspect regex best way unsure.

any assistance appreciated.

you can use split

string str = "name;ipaddress"; string[] both = str.split(';'); string name = both[0]; string ipadd = both[1]; 

Comments