On Thu, Apr 8, 2010 at 23:27, Tony Balinski <[email protected]> wrote: > Quoting Bert Wesarg <[email protected]>: > >> This is an proof-of-concept to implement the mentiond anchors. For those >> who >> don't know them (that includes me until yesterday): >> >> \A - matches the very beginning of a file >> \z - matches the very end of a file >> \Z - matches the very end of a file >> or the last end of line if the file does not end with a newline > > Hmmm. I was rather hoping the \z could be kept for a future when we can match > '\0' in a file...
I think it is not a problem to specify a '\0' inside the regex string, for example by octal or hex. It is a problem to put a literal '\0' inside the compiled regex code. Because the regex match routine uses strncmp for exact matches, so a '\0' would not work here. The match code should be changed to use memcmp. Bert > > Tony > -- > NEdit Develop mailing list - [email protected] > http://www.nedit.org/mailman/listinfo/develop > -- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
