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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -