Re: [Regex] \r matching \n

Rainer Deyke via Boost <[email protected]>
Newsgroups gmane.comp.lib.boost.devel
Message-ID <[email protected]>
On 3/25/26 17:25, Olaf van der Spek via Boost wrote:
>> R"(\\n)" = "\\n" should match "\\n", i.e. a backslash followed by 'n'.
> 
> This line isn't correct, is it?  Two slashes in the raw string should
> be four slashes in a normal string.

You are of course correct.  R"(\\n)" = "\\\\n", which matches R"(\n)" = 
"\\n".


-- 
Rainer Deyke - [email protected]

_______________________________________________
Boost mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.boost.org/mailman3/lists/boost.lists.boost.org/
Archived at: https://lists.boost.org/archives/list/[email protected]/message/ESLFUWFX5WPZIGS74MX3SXM6NDRKKGEP/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.