Chapter 15. Regular Expression Grammars

When a thought takes ones breath away, a lesson on grammar seems an impertinence.

Preface to Emily Dickinson’s Poems, First SeriesTHOMAS WENTWORTH HIGGINSON

A regular expression grammar defines the rules for writing and interpreting a regular expression. The TR1 library supports six grammars. These grammars have a lot in common, so many regular expressions match the same set of target sequences, regardless of which grammar is being used. However, the grammars also have significant differences, so some things that are valid under one grammar are illegal under another; worse, some things that mean one thing under one grammar mean something different under another. It’s important to know which grammar you’re ...

Get The C++ Standard Library Extensions A Tutorial and Reference 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.