Substitute chars in part of a line
Posted: Thu 31 Dec 2009, 14:21
for a little menu-project, i need to substitute " " with "-" ... but only some ...
here is an example line
the result should be
so the substitution should substitute
all " " with "-" but not
within double-quotes and not
direct before a double quote.
alternatively, i could output the line with 'control-characters' for the substitution-array like
any help?
thanks in advance
aragon
here is an example line
Code: Select all
Calcoo scientific calculator "calcoo"
Code: Select all
Calcoo-scientific-calculator "calcoo"
all " " with "-" but not
within double-quotes and not
direct before a double quote.
alternatively, i could output the line with 'control-characters' for the substitution-array like
Code: Select all
#Calcoo scientific calculator# "calcoo"
thanks in advance
aragon