On 2017/12/21 3:00, Benno Schulenberg wrote:
Ah. Thanks. It is a match-beginning-of-buffer "anchor". That makes sense.
Your "beginning of a search" wording had me puzzled. But it is: the
beginning of the buffer in which to search.
But... how portable is this? The BSDs won't understand this, I guess. So
how do we tell the BSDs that they should use the gnulib regex module?
Because we want to use GNU-specific regular expressions.
I don't know. AFAICT the \< and \> things are already GNU extensions, so it is
less vicious to have another extension. :|
There were indeed problems when building GNU nano using the bundled regex
library from GNUlib. I can't recall for now... IIRC it didn't recognize
[[:alpha:]], [[:space:]] etc (maybe it was \s, \w etc), Therefore I had to get
a regex library ripped from Glibc.