<regex>: Properly parse dollar anchors in basic and grep mode by muellerj2 · Pull Request #5362 · microsoft/STL (original) (raw)
This PR provides the symmetric change to #5165 for the dollar sign in basic and grep mode. Similar to the handling of the caret anchor, this PR recognizes a dollar sign as an anchor in a basic regular expression if it is at the end of an alternative. It does so by doing a bit of lookahead.
Drive-by: Remove a duplicated test that was accidentally added in #5165.