Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2022 17:10:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 265480] std::regex constructor throwing an exception at backslash-underscore but not other invalid escapes
Message-ID:  <bug-265480-99@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265480

            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 express=
ion
contained an invalid escaped character, or a trailing escape."

This does not occur on non-FreeBSD systems, and it does not occur for sever=
al
other escapes that are normally invalid by regex convention (e.g., \& \=3D =
\/).

Is this intentional?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265480-99>