Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-08-02 12:00:04


Winson Yung wrote:
>> Thank you John, right the difference is in the header. Your regular
>> expression however doesn't make sense to me though, where is the
>> part that matchs the sub-total header?

consume whitespace: "\\s+"
match something that is not a number: "[\\d$]"
consume the rest of that line: "[^\r\n]*[\r\n]+"
consume the next line as well: "[^\r\n]+[\r\n]+"

All of that was in a (?: ... )+ block since it can be repeated several times
before we get to a line with no header.

Clear now?

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net