From: Me Me [mailto:emanuelef / tiscali.it] 
# >> line.scanf("%6s=%6s,%d,%d,%d,%d")
# > => ["Client", "MPEG-4", 390000, 700000, 24000]
# the problem I have now is that the size of the string is not 
# fixed to 6  chars.
# And if I try to parse like:
# line.scanf("%s=%s,%d,%d,%d,%d")
# It doesn't parse the string.
# Is there a way to parse any string?
# thanks again

oops, sorry, i thought it was good enough.

in that case, you'll have to use char classes,

> line.scanf("%[A-Za-z]=%[A-Z1-9-],%d,%d,%d,%d")
=> ["Client", "MPEG-4", 390000, 700000, 24000]

is that ok?
kind regards -botp