Re: Strtok-v2-1.e problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

include Strtok-v2-1.e
sequence s
s = parse("1__2_3_4_5",{"k","_"})
puts(1,s[1])

gives 1__2_3_4_5
:p


include kparse.e
sequence s
s = Kparse("1__2_3_4_5","_")
for i = 1 to length(s) do
	puts(1,s[i] & ",")
end for

gives 1,,2,3,4,5,

thanx!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu