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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -