affect how the regular expressions around them are interpreted.
The special characters are:
-
-\begin{list}{}{\leftmargin 0.7in \labelwidth 0.65in}
+%
+\begin{description}
\item[\character{.}] (Dot.) In the default mode, this matches any
character except a newline. If the \constant{DOTALL} flag has been
\code{'user@host.com'}, but not with \code{'<user@host.com'}.
\versionadded{2.4}
-\end{list}
+\end{description}
The special sequences consist of \character{\e} and a character from the
list below. If the ordinary character is not on the list, then the
resulting RE will match the second character. For example,
\regexp{\e\$} matches the character \character{\$}.
-
-\begin{list}{}{\leftmargin 0.7in \labelwidth 0.65in}
+%
+\begin{description}
\item[\code{\e \var{number}}] Matches the contents of the group of the
same number. Groups are numbered starting from 1. For example,
\item[\code{\e Z}]Matches only at the end of the string.
-\end{list}
+\end{description}
Most of the standard escapes supported by Python string literals are
also accepted by the regular expression parser: