Skip to Content
The C++ Programming Language, 4th Edition
book

The C++ Programming Language, 4th Edition

by Bjarne Stroustrup
May 2013
Intermediate to advanced
1376 pages
47h 26m
English
Addison-Wesley Professional
Content preview from The C++ Programming Language, 4th Edition

37. Regular Expressions

If the code and the comments disagree, then both are probably wrong.

– Norm Schryer

Regular Expressions

Regular Expression Notation

regex

Match Results; Formatting

Regular Expression Functions

regex_match(); regex_search(); regex_replace()

Regular Expression Iterators

regex_iterator; regex_token_iterator

regex_traits

Advice

37.1. Regular Expressions

In <regex>, the standard library provides support for regular expressions:

regex_match(): Match a regular expression against a string (of known size).

regex_search(): Search for a string that matches a regular expression in an (arbitrarily long) stream of data.

regex_replace(): Search for strings that match a regular expression in an (arbitrarily long) stream ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming: Principles and Practice Using C++, 3rd Edition

Programming: Principles and Practice Using C++, 3rd Edition

Bjarne Stroustrup

Publisher Resources

ISBN: 9780133522884Purchase Link