Chapter 14. Regular Expressions
This chapter introduces the library for regular expressions. That library allows you to use wildcards and patterns to search and replace characters in strings.
In principle, you can do the following with regular expressions:
• Match the whole input against a regular expression
• Search for patterns that match a regular expression
• Tokenize a character according to a token separator specified as a regular expression
• Replace in the first or all subsequences that match a regular expression For all these operations, you can use different grammars, which are used to define a regular expression.
I begin this chapter by introducing the various operations, then discussing different grammars, and finally listing the ...
Get C++ Standard Library, The: A Tutorial and Reference, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.