From Jason Turner
Watch on YouTube

Summary

In this episode, Jason provides a concise introduction to std::regex, a feature added in C++11 that he considers underappreciated due to its delayed implementation in popular compilers. He demonstrates how to use regex capture groups to parse structured text by extracting line numbers and message types from an error log format. The episode highlights the various regex match types available, explains the importance of raw string literals for regex patterns, and notes some performance considerations including compile-time overhead and string allocation during matching.

Resources

Tags