Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Global _n

boost::xpressive::_n — Matches a literal newline character, '\n'.

Synopsis

// In header: <boost/xpressive/regex_primitives.hpp>

proto::terminal< char >::type const _n;

Description

'_n' matches a single newline character, '\n'. Use ~_n to match a character that is not a newline.

[Note] Note

~_n is like '.' in perl without the /s modifier.


PrevUpHomeNext