Skip to content
Loading
i having one string reg001.columnname reg2.columnsname ----i want to
  • Satya Karki
    Hi,
     
    You can use split and remove in c#.
    1. string inputValue = "reg001.columnname, reg2.columnsname";  
    2.         string[] columnValues = inputValue.Split(", ");  
    3.         foreach(string column in columnValues)  
    4.         {  
    5.             string columnOutPut = column.Split('.').Last(); // remove word before .  
    6.             Console.WriteLine(columnOutPut);  
    7.         }