Change \B to be the opposite of \b.

Also update docs.
Fixes https://github.com/boostorg/regex/issues/123.
This commit is contained in:
jzmaddock
2021-10-07 18:52:27 +01:00
parent 78bf0acd20
commit 10cff29314
4 changed files with 18 additions and 1 deletions

View File

@ -112,6 +112,7 @@ void test_assertion_escapes()
TEST_REGEX_SEARCH("\\By\\b", perl, "xy", match_default, make_array(1, 2, -2, -2));
TEST_REGEX_SEARCH("\\by\\B", perl, "yz", match_default, make_array(0, 1, -2, -2));
TEST_REGEX_SEARCH("\\B\\*\\B", perl, " * ", match_default, make_array(1, 2, -2, -2));
TEST_REGEX_SEARCH(".\\B.", perl, "!?", match_default, make_array(0, 2, -2, -2));
// buffer operators:
TEST_REGEX_SEARCH("\\`abc", perl, "abc", match_default, make_array(0, 3, -2, -2));
TEST_REGEX_SEARCH("\\`abc", perl, "\nabc", match_default, make_array(-2, -2));