Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
> I am still not sure.
> boost::regex reg("([^,]+),[ ]+(.*)");

Does your regex work over multiple lines, for example?

Regexes are expensive to construct and a pain to maintain.
As case in point, what is that (.*) group doing? If you
want to handle multiple tokens then the regex above just
doesn't cut it.

Use the right tool for the job; regexes aren't good
tools for parsing straightforward grammars. In fact,
parsers written using them (eg reLyX) are a PITA.

Angus

Reply via email to