]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libregex: implement \b and \B (word boundary, not word boundary)
authorKyle Evans <kevans@FreeBSD.org>
Sat, 5 Dec 2020 03:16:05 +0000 (03:16 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sat, 5 Dec 2020 03:16:05 +0000 (03:16 +0000)
commit6b986646d434baa21ae3d74d6a662ad206c7ddbd
tree11153e51ca240d2b5256c0f35e6d0f9feeaeca1b
parentca53e5aedfebcc1b4091b68e01b2d5cae923f85e
libregex: implement \b and \B (word boundary, not word boundary)

This is the last of the needed GNU expressions before we can unleash bsdgrep
by default. \b is effectively an agnostic equivalent of \< and \>, while
\B will match every space that isn't making a transition from
nonchar -> char or char -> nonchar.
contrib/netbsd-tests/lib/libc/regex/data/meta.in
lib/libc/regex/engine.c
lib/libc/regex/regcomp.c
lib/libc/regex/regex2.h
lib/libregex/tests/gnuext.in