Hari B

Hari B

  • NA
  • 139
  • 68k

Split string in c# windows application

Jan 30 2018 7:46 AM
Hello all,
 
i am reading table in word document using c#.
 
I need to split cell value like below
 
Table
 
 X  test
 Y        Test
 Z SHORT C6936,C6933,C6932,R6941,R6942,R6935,

OPEN R6935,R6936

 
Z row value should be split like below
 
My code
 
Note_Text=
SHORT C6936,C6933,C6932,R6941,R6942,R6935,R6936,C6934\rOPEN R6935,R6936\r\a 
 
var Note_List = Note_Text.Split(',').ToList(); 
 
List -1 
 
SHORT
C6936 
C6933 
C6932 
R6941 
R6942 
R6935
 
 List-2 
 
OPEN
R6935
R6936 

Answers (3)