
2 Aug
2006
2 Aug
'06
4 p.m.
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.