I am reading Stroustrup's book and particularly the chapter regarding Regex. I have an example in the book where he shows, by designing a Regex pattern, to grab and import US ZIP codes from .txt file.
The regex pat("\\w{2}\\s*\\d{5}(-\\d{4})?") he's using should output this:
But when I run mine, it is composed only by main pattern, without the sub-pattern. I saw he uses Boost version of Regex while I use MS Visual Studio 2015 Community with the default one. How is this possible? Even this std version is similar to Perl's Regex as Stroustrup states in his book?