how can i split the string
" This is a text with spaces "
that is in the variable "string" into text parts without loosing the spaces ?
set string="# This is a text with spaces #"
should be split into
"# This"
" is"
" a"
" text"
" with"
" spaces #"
Using For /F "delims= " ... doesn't work because it eliminates all spaces.
Is there a 'simple' solution or can anyone explain how to parse the string character by character so i can count up spaces to first character, then read all characters until next space and write the counted spaces and the read characters together to a new/temp variable ??
thanks
#s got to do with the matter? they seem to appear from thin air.#and second ` This;your second-lastspaces` and your last ` #` - which is different from your posted result.