Boost C++ Libraries 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 to view this page for the latest version.

Global _n

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


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

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


'_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.