string test = "shakun(shrestha)"; string s = test.Split('(')[1];
char[] array = { '(', ')' }; string[] splitArray = str.Split(array); string strFirst = splitArray[0]; string strSirst = splitArray[1];
string test = "shakun(shrestha)"; string[] s = test.Split(new char[] { '(', ')' }, StringSplitOptions.None).Where(item => item != string.Empty).ToArray<string>();
string test =shakun(shrestha); string s = test.Split('(',')')[1];
string test = "shakun(shrestha)"; test = test.Replace("(", "|"); test = test.Replace(")", "|"); string[] arr = test.Split('|'); foreach (string s in arr) { //do what you want here. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)