[libcxx-commits] [PATCH] D75622: [FIX][libc++][Regex] Using regex_constants match_prev_avail | match_not_bol | match_not_bow
Diogo N. Sampaio via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Mar 12 02:20:03 PDT 2020
dnsampaio added a comment.
Hi @EricWF, thanks for the review.
Indeed there seems to have some other unrelated issue for matching the word boundary `\b`. Perhaps I wrongly assumed that it should also match line beginning and end.
For example, I would expect all these matches to succeed:
cout << regex_match("a", regex("\ba")) << "\n"
<< regex_match("a", regex("a\b")) << "\n"
<< regex_match("a", regex("\ba\b")) << "\n"
<< regex_match("a", regex("a")) << "\n";
But what I get is:
0
0
0
1
So it is unrelated in how `match_not_bow` is ignored when using `match_prev_avail`. I would rather open a defect for that apart.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75622/new/
https://reviews.llvm.org/D75622
More information about the libcxx-commits
mailing list