C# code to get the string between two strings
example :
mystring = "aaa.xxx.b.ccc.12345"
Need c# code to get the second string "xxx" between two ".", always the second string ignore other strings between the "." What is the best way to get "xxx" out of "aaa.xxx.b.ccc.12345"
And the second set of string can be anything eg: