c# - Need to split string with specific exception -
help, need split:
aaa 'bbb c' dd ee fg hjj
with preserving space on quotation
i tried use .split(" ") , ends with
aaa
'bbb
c'
dd
ee
fg
hjj
what expected is
aaa
'bbb c'
dd
ee
fg
hjj
can kindly me?
you may split " " mentioned wrong results try looping around result find elements beginning ' character , merge until reach element ends ' character. not forget put space between them.
Comments
Post a Comment