-1

I have string format, example "abc || def || igh". I want to cut into: abc, def,igh, but when i try use split getting the error "Too many characters in character literal error" Can somebody help me? Thanks All.

melpomene
  • 81,915
  • 7
  • 76
  • 137
Walter
  • 31
  • 2
  • 6

1 Answers1

0

You can use char array.Example:

char[] delimiterChars = { ' ', ',', '.', '?', ':' };

after

text.Split(delimiterChars)
Tagi
  • 306
  • 4
  • 15