This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.
3603. Matching of null characters by regular expressions is underspecifiedSection: 28.6.7.2 [re.regex.construct], 28.6.10 [re.alg] Status: New Submitter: Jonathan Wakely Opened: 2021-09-27 Last modified: 2021-10-14
Priority: 3
View other active issues in [re.regex.construct].
View all other issues in [re.regex.construct].
View all issues with New status.
Discussion:
ECMAScript says that \0
is an ordinary character and can be matched. POSIX says the opposite:
std::regex{"", 1, regex::basic}
should throw an exception? And std::regex_match(string{"a\0b", 3}, regex{"a.b", regex::basic})
should fail? The POSIX rule is because those interfaces are specified with NTBS arguments, so there's no way to distinguish "a\0b"
and "a"
. The C++ interfaces could allow it, but we never specify any divergence from POSIX, so presumably the rule still applies. Is that what was intended and is it what we want?
[2021-10-14; Reflector poll]
Set priority to 3 after reflector poll.
Proposed resolution:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4