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