Tag: regex
3 posts
-
C++ Regular Expression Basics: std::regex Matching, Capture Groups and Tokenizing
A beginner-focused introduction to std::regex: the regex_match vs regex_search mistake almost everyone makes first, how capture groups are indexed, and the raw-string habit that avoids double-escaping bugs.
-
Boost in Modern C++: What the Standard Replaced, What Is Still Worth It, and How to Link It
Which Boost libraries C++17/20/23 replaced, when Asio, Beast, Container or Multiprecision still pay off, and fixing find_package, CMP0167 and link errors.
-
C++ sregex_iterator | Regex iterators for all matches
Use sregex_iterator and sregex_token_iterator to enumerate matches, split tokens, avoid dangling iterators, and handle empty matches and UTF-8 limits.