split tab string

  • Thread starter Thread starter Grey
  • Start date Start date
G

Grey

how to split the string which the separator is TAB.e.g.
string a = "abc bcd abc";
a.split('Tab');

Does it need to use some special character...which like vbTab in VB6...

Million Thanks
 
Try:

a.split("\t"[0]);

Hope this helps
Martin


how to split the string which the separator is TAB.e.g.
string a = "abc bcd abc";
a.split('Tab');

Does it need to use some special character...which like vbTab in VB6...

Million Thanks
 
a.Split(new char[]{' '})
"Grey" <[email protected]> å†™å…¥æ¶ˆæ¯æ–°é—»:[email protected]...
how to split the string which the separator is TAB.e.g.
string a = "abc bcd abc";
a.split('Tab');

Does it need to use some special character...which like vbTab in VB6...

Million Thanks
 
Back
Top