[Bug 265480] std::regex constructor throwing an exception at backslash-underscore but not other invalid escapes
Date: Thu, 28 Jul 2022 17:10:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265480 Bug ID: 265480 Summary: std::regex constructor throwing an exception at backslash-underscore but not other invalid escapes Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: cooperm@opentext.com When passing to the std::regex constructor a pattern that include an escaped underscore ("\_"), an exception is thrown with the explanation "The expression contained an invalid escaped character, or a trailing escape." This does not occur on non-FreeBSD systems, and it does not occur for several other escapes that are normally invalid by regex convention (e.g., \& \= \/). Is this intentional? -- You are receiving this mail because: You are the assignee for the bug.