30 Aug
2006
30 Aug
'06
10:42 a.m.
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.