In this exercise I am using Visual Studio 2019 and a modified version of the std_lib_facilities header found here.
Chapter 23 // Exercise 13
Does dot (.) match '\n'? Write a program to find out.
Using regex101.com, it shouldn't match. (.) and '\n' are completely seperate. I used regex_replace to also show how they don't match.
A part of me though feels like this is trick question. Maybe it's not, it's one of those seemingly simple things designed to catch you out....or maybe I'm just overthinking.
No comments:
Post a Comment