[29] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
---|
| 2 | <html> |
---|
| 3 | <head> |
---|
| 4 | <title>Boost.Regex: Regular Expression Syntax</title> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
| 6 | <link rel="stylesheet" type="text/css" href="../../../boost.css"> |
---|
| 7 | </head> |
---|
| 8 | <body> |
---|
| 9 | <P> |
---|
| 10 | <TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="0"> |
---|
| 11 | <TR> |
---|
| 12 | <td valign="top" width="300"> |
---|
| 13 | <h3><a href="../../../index.htm"><img height="86" width="277" alt="C++ Boost" src="../../../boost.png" border="0"></a></h3> |
---|
| 14 | </td> |
---|
| 15 | <TD width="353"> |
---|
| 16 | <H1 align="center">Boost.Regex</H1> |
---|
| 17 | <H2 align="center">Regular Expression Syntax</H2> |
---|
| 18 | </TD> |
---|
| 19 | <td width="50"> |
---|
| 20 | <h3><a href="index.html"><img height="45" width="43" alt="Boost.Regex Index" src="uarrow.gif" border="0"></a></h3> |
---|
| 21 | </td> |
---|
| 22 | </TR> |
---|
| 23 | </TABLE> |
---|
| 24 | </P> |
---|
| 25 | <HR> |
---|
| 26 | <P>This section covers the regular expression syntax used by this library, this is |
---|
| 27 | a programmers guide, the actual syntax presented to your program's users will |
---|
| 28 | depend upon the <A href="syntax_option_type.html">flags</A> used during |
---|
| 29 | expression compilation. |
---|
| 30 | </P> |
---|
| 31 | <P>There are three main syntax options available, depending upon how |
---|
| 32 | you construct the regular expression object:</P> |
---|
| 33 | <UL> |
---|
| 34 | <LI> |
---|
| 35 | <A href="syntax_perl.html">Perl</A> (this is the default behavior).</LI> |
---|
| 36 | <LI> |
---|
| 37 | <A href="syntax_extended.html">POSIX extended</A> (including the <A href="syntax_extended.html#egrep"> |
---|
| 38 | egrep</A> and <A href="syntax_extended.html#awk">awk</A> variations).</LI> |
---|
| 39 | <LI> |
---|
| 40 | <A href="syntax_basic.html">POSIX Basic</A> (including the <A href="syntax_basic.html#grep"> |
---|
| 41 | grep</A> and <A href="syntax_basic.html#emacs">emacs</A> variations).</LI></UL> |
---|
| 42 | <P>You can also construct a regular expression that treats every character as a <A href="syntax_option_type.html#literals"> |
---|
| 43 | literal</A>, but that's not really a "syntax"!</P> |
---|
| 44 | <HR> |
---|
| 45 | <p>Revised |
---|
| 46 | <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan --> |
---|
| 47 | 10 Sept 2004 |
---|
| 48 | <!--webbot bot="Timestamp" endspan i-checksum="39359" --></p> |
---|
| 49 | <p><i>© Copyright John Maddock 1998- |
---|
| 50 | <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%Y" startspan --> 2004<!--webbot bot="Timestamp" endspan i-checksum="39359" --></i></p> |
---|
| 51 | <P><I>Use, modification and distribution are subject to the Boost Software License, |
---|
| 52 | Version 1.0. (See accompanying file <A href="../../../LICENSE_1_0.txt">LICENSE_1_0.txt</A> |
---|
| 53 | or copy at <A href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>)</I></P> |
---|
| 54 | </body> |
---|
| 55 | </html> |
---|