I want to parse a string of the following form:

var s  = title.string1-color.string2-size.string3

How do I create a struct with the three strings?

h = {};
h['title'] = s.match()
h['color'] = s.match()
h['size'] =  s.match()

Can you help me do the rest?  Would I just want to use the .match
javascript function and some regex, or is there a neater way to parse
strings?

Reply via email to