[pcre-dev] [Bug 2245] new operators request for beginning an…

Top Pagina
Delete this message
Auteur: admin
Datum:  
Aan: pcre-dev
Oude Onderwerpen: [pcre-dev] [Bug 2245] New: new operators request for beginning and end of file
Onderwerp: [pcre-dev] [Bug 2245] new operators request for beginning and end of file
https://bugs.exim.org/show_bug.cgi?id=2245

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|REOPENED                    |RESOLVED


--- Comment #7 from Philip Hazel <ph10@???> ---
(In reply to Jim Michaels from comment #6)
> I have once answer to impossible: fsetpos().


As we keep on saying, the PCRE library has NO CONCEPT of files! It deals only
with strings of characters in main memory. fsetpos() works on FILE descriptors;
there are none involved in the PCRE library, so there is nothing for fsetpos()
to work on.

If you are talking about pcre2grep rather than the underlying library, there
are easy ways of matching strings at the start and end of a file:

head -1 somefile | pcre2grep '^Start'
tail -1 somefile | pcre2grep 'End$'

As I said before, we seem to be misunderstanding each other. Please explain
what you are really trying to do if you want to take this further.

--
You are receiving this mail because:
You are on the CC list for the bug.