|
Boost Users : |
From: John Maddock (john_at_[hidden])
Date: 2006-08-30 06:42:24
kiran wrote:
> Hi
> I am trying to extract a pattern from a file. Actually there
> are 2 occurances of the pattern in the file, one in line 2-3 and
> other in line 4. But the program is only reporting the occurance in
> line 4.
>
> The reason why i am giving (.|\n) coupled
> 'match_not_dot_newline' with is that i want the regex to be perl
> compatible.
> Why is the program not reporting the first occurance ? Is this
> a bug ? I am attaching the code and file.
It's doing exactly what the regex asks it to do: it matches everything from
the first occurance of "Resurfacing" to the last occurance of "home". There
is only one such match in the document.
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