
Hi It is DEFINITELY not doing what it is asked to do. The EXPECTED OUTPUT was :: Resurfacing for Swimming Pools</title> <meta name="robots" content="index,follow">Home <meta name="keywords" content="pool Resurfacing,uglassit,fibre-shelkote,Uglassit,Fibre-shelkote,swimming pool resurfacing">Home But the RESULTANT OUTPUT we got was :: Resurfacing,uglassit,fibre-shelkote,Uglassit,Fibre-shelkote,swimming pool resurfacing">Home This means that it is not picking the "Resurfacing" in the SECOND line of the file, but rather picking the "Resurfacing" in the FOURTH line of the file. Why is the second one not picked ? This was my question. Regards Kiran. ----- Original Message ----- From: "John Maddock" <john@johnmaddock.co.uk> To: <boost-users@lists.boost.org> Sent: Wednesday, August 30, 2006 4:12 PM Subject: Re: [Boost-users] [regex] - Bug in boost::regex ??
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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users