-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
  • 84,125
  • 8
  • 85
  • 148
Walter
  • 31
  • 2
  • 6

1 Answers1

0

You can use char array.Example:

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

after

text.Split(delimiterChars)
Tagi
  • 302
  • 4
  • 17