28 Dec
2004
28 Dec
'04
5:45 a.m.
I am trying to use Spirit to parse lines like:
name:value
but, name might contain colons also. I've not been able to come up with anything that parses this correctly without swallowing up the rest of the document. Anyone able to help?
Seeing your code would be a good first step in helping you, but I imagine something like the following should work as desired: +(+(alnum_p | ':') >> ':' >> +(alnum_p) >> eol_p); -- Matthew Peltzer -- goochrules@gmail.com