Skip to Content
Programming: Principles and Practice Using C++, 2nd Edition
book

Programming: Principles and Practice Using C++, 2nd Edition

by Bjarne Stroustrup
May 2014
Beginner
1312 pages
38h 36m
English
Addison-Wesley Professional
Content preview from Programming: Principles and Practice Using C++, 2nd Edition

23. Text Manipulation

“Nothing is so obvious that it’s obvious . . . The use of the word ‘obvious’ indicates the absence of a logical argument.”

—Errol Morris

This chapter is mostly about extracting information from text. We store lots of our knowledge as words in documents, such as books, email messages, or “printed” tables, just to later have to extract it into some form that is more useful for computation. Here, we review the standard library facilities most used in text processing: strings, iostreams, and maps. Then, we introduce regular expressions (regexs) as a way of expressing patterns in text. Finally, we show how to use regular expressions to find and extract specific data elements, such as ZIP codes (postal codes), from text and to ...

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
C++ How to Program, 10/e

C++ How to Program, 10/e

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9780133796759Purchase book