ÿØÿà JFIF ÿþ >CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality
ÿÛ C
Server IP : 172.67.171.101 / Your IP : 216.73.216.123 Web Server : Apache System : Linux server1.morocco-tours.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : zagoradraa ( 1005) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/python-docs-2.7.5/html/library/ |
Upload File : |
| Current File : /usr/share/doc/python-docs-2.7.5/html/library/re.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>7.2. re — Regular expression operations — Python 2.7.5 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '2.7.5',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="../_static/sidebar.js"></script>
<link rel="search" type="application/opensearchdescription+xml"
title="Search within Python 2.7.5 documentation"
href="../_static/opensearch.xml"/>
<link rel="author" title="About these documents" href="../about.html" />
<link rel="copyright" title="Copyright" href="../copyright.html" />
<link rel="top" title="Python 2.7.5 documentation" href="../index.html" />
<link rel="up" title="7. String Services" href="strings.html" />
<link rel="next" title="7.3. struct — Interpret strings as packed binary data" href="struct.html" />
<link rel="prev" title="7.1. string — Common string operations" href="string.html" />
<link rel="shortcut icon" type="image/png" href="../_static/py.png" />
<script type="text/javascript" src="../_static/copybutton.js"></script>
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="struct.html" title="7.3. struct — Interpret strings as packed binary data"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="string.html" title="7.1. string — Common string operations"
accesskey="P">previous</a> |</li>
<li><img src="../_static/py.png" alt=""
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="http://www.python.org/">Python</a> »</li>
<li>
<a href="../index.html">Python 2.7.5 documentation</a> »
</li>
<li><a href="index.html" >The Python Standard Library</a> »</li>
<li><a href="strings.html" accesskey="U">7. String Services</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="module-re">
<span id="re-regular-expression-operations"></span><h1>7.2. <a class="reference internal" href="#module-re" title="re: Regular expression operations."><tt class="xref py py-mod docutils literal"><span class="pre">re</span></tt></a> — Regular expression operations<a class="headerlink" href="#module-re" title="Permalink to this headline">¶</a></h1>
<p>This module provides regular expression matching operations similar to
those found in Perl. Both patterns and strings to be searched can be
Unicode strings as well as 8-bit strings.</p>
<p>Regular expressions use the backslash character (<tt class="docutils literal"><span class="pre">'\'</span></tt>) to indicate
special forms or to allow special characters to be used without invoking
their special meaning. This collides with Python’s usage of the same
character for the same purpose in string literals; for example, to match
a literal backslash, one might have to write <tt class="docutils literal"><span class="pre">'\\\\'</span></tt> as the pattern
string, because the regular expression must be <tt class="docutils literal"><span class="pre">\\</span></tt>, and each
backslash must be expressed as <tt class="docutils literal"><span class="pre">\\</span></tt> inside a regular Python string
literal.</p>
<p>The solution is to use Python’s raw string notation for regular expression
patterns; backslashes are not handled in any special way in a string literal
prefixed with <tt class="docutils literal"><span class="pre">'r'</span></tt>. So <tt class="docutils literal"><span class="pre">r"\n"</span></tt> is a two-character string containing
<tt class="docutils literal"><span class="pre">'\'</span></tt> and <tt class="docutils literal"><span class="pre">'n'</span></tt>, while <tt class="docutils literal"><span class="pre">"\n"</span></tt> is a one-character string containing a
newline. Usually patterns will be expressed in Python code using this raw
string notation.</p>
<p>It is important to note that most regular expression operations are available as
module-level functions and <a class="reference internal" href="#re.RegexObject" title="re.RegexObject"><tt class="xref py py-class docutils literal"><span class="pre">RegexObject</span></tt></a> methods. The functions are
shortcuts that don’t require you to compile a regex object first, but miss some
fine-tuning parameters.</p>
<div class="admonition-see-also admonition seealso">
<p class="first admonition-title">See also</p>
<dl class="last docutils">
<dt>Mastering Regular Expressions</dt>
<dd>Book on regular expressions by Jeffrey Friedl, published by O’Reilly. The
second edition of the book no longer covers Python at all, but the first
edition covered writing good regular expression patterns in great detail.</dd>
</dl>
</div>
<div class="section" id="regular-expression-syntax">
<span id="re-syntax"></span><h2>7.2.1. Regular Expression Syntax<a class="headerlink" href="#regular-expression-syntax" title="Permalink to this headline">¶</a></h2>
<p>A regular expression (or RE) specifies a set of strings that matches it; the
functions in this module let you check if a particular string matches a given
regular expression (or if a given regular expression matches a particular
string, which comes down to the same thing).</p>
<p>Regular expressions can be concatenated to form new regular expressions; if <em>A</em>
and <em>B</em> are both regular expressions, then <em>AB</em> is also a regular expression.
In general, if a string <em>p</em> matches <em>A</em> and another string <em>q</em> matches <em>B</em>, the
string <em>pq</em> will match AB. This holds unless <em>A</em> or <em>B</em> contain low precedence
operations; boundary conditions between <em>A</em> and <em>B</em>; or have numbered group
references. Thus, complex expressions can easily be constructed from simpler
primitive expressions like the ones described here. For details of the theory
and implementation of regular expressions, consult the Friedl book referenced
above, or almost any textbook about compiler construction.</p>
<p>A brief explanation of the format of regular expressions follows. For further
information and a gentler presentation, consult the <a class="reference internal" href="../howto/regex.html#regex-howto"><em>Regular Expression HOWTO</em></a>.</p>
<p>Regular expressions can contain both special and ordinary characters. Most
ordinary characters, like <tt class="docutils literal"><span class="pre">'A'</span></tt>, <tt class="docutils literal"><span class="pre">'a'</span></tt>, or <tt class="docutils literal"><span class="pre">'0'</span></tt>, are the simplest regular
expressions; they simply match themselves. You can concatenate ordinary
characters, so <tt class="docutils literal"><span class="pre">last</span></tt> matches the string <tt class="docutils literal"><span class="pre">'last'</span></tt>. (In the rest of this
section, we’ll write RE’s in <tt class="docutils literal"><span class="pre">this</span> <span class="pre">special</span> <span class="pre">style</span></tt>, usually without quotes, and
strings to be matched <tt class="docutils literal"><span class="pre">'in</span> <span class="pre">single</span> <span class="pre">quotes'</span></tt>.)</p>
<p>Some characters, like <tt class="docutils literal"><span class="pre">'|'</span></tt> or <tt class="docutils literal"><span class="pre">'('</span></tt>, are special. Special
characters either stand for classes of ordinary characters, or affect
how the regular expressions around them are interpreted. Regular
expression pattern strings may not contain null bytes, but can specify
the null byte using the <tt class="docutils literal"><span class="pre">\number</span></tt> notation, e.g., <tt class="docutils literal"><span class="pre">'\x00'</span></tt>.</p>
<p>The special characters are:</p>
<dl class="docutils">
<dt><tt class="docutils literal"><span class="pre">'.'</span></tt></dt>
<dd>(Dot.) In the default mode, this matches any character except a newline. If
the <a class="reference internal" href="#re.DOTALL" title="re.DOTALL"><tt class="xref py py-const docutils literal"><span class="pre">DOTALL</span></tt></a> flag has been specified, this matches any character
including a newline.</dd>
<dt><tt class="docutils literal"><span class="pre">'^'</span></tt></dt>
<dd>(Caret.) Matches the start of the string, and in <a class="reference internal" href="#re.MULTILINE" title="re.MULTILINE"><tt class="xref py py-const docutils literal"><span class="pre">MULTILINE</span></tt></a> mode also
matches immediately after each newline.</dd>
<dt><tt class="docutils literal"><span class="pre">'$'</span></tt></dt>
<dd>Matches the end of the string or just before the newline at the end of the
string, and in <a class="reference internal" href="#re.MULTILINE" title="re.MULTILINE"><tt class="xref py py-const docutils literal"><span class="pre">MULTILINE</span></tt></a> mode also matches before a newline. <tt class="docutils literal"><span class="pre">foo</span></tt>
matches both ‘foo’ and ‘foobar’, while the regular expression <tt class="docutils literal"><span class="pre">foo$</span></tt> matches
only ‘foo’. More interestingly, searching for <tt class="docutils literal"><span class="pre">foo.$</span></tt> in <tt class="docutils literal"><span class="pre">'foo1\nfoo2\n'</span></tt>
matches ‘foo2’ normally, but ‘foo1’ in <a class="reference internal" href="#re.MULTILINE" title="re.MULTILINE"><tt class="xref py py-const docutils literal"><span class="pre">MULTILINE</span></tt></a> mode; searching for
a single <tt class="docutils literal"><span class="pre">$</span></tt> in <tt class="docutils literal"><span class="pre">'foo\n'</span></tt> will find two (empty) matches: one just before
the newline, and one at the end of the string.</dd>
<dt><tt class="docutils literal"><span class="pre">'*'</span></tt></dt>
<dd>Causes the resulting RE to match 0 or more repetitions of the preceding RE, as
many repetitions as are possible. <tt class="docutils literal"><span class="pre">ab*</span></tt> will match ‘a’, ‘ab’, or ‘a’ followed
by any number of ‘b’s.</dd>
<dt><tt class="docutils literal"><span class="pre">'+'</span></tt></dt>
<dd>Causes the resulting RE to match 1 or more repetitions of the preceding RE.
<tt class="docutils literal"><span class="pre">ab+</span></tt> will match ‘a’ followed by any non-zero number of ‘b’s; it will not
match just ‘a’.</dd>
<dt><tt class="docutils literal"><span class="pre">'?'</span></tt></dt>
<dd>Causes the resulting RE to match 0 or 1 repetitions of the preceding RE.
<tt class="docutils literal"><span class="pre">ab?</span></tt> will match either ‘a’ or ‘ab’.</dd>
<dt><tt class="docutils literal"><span class="pre">*?</span></tt>, <tt class="docutils literal"><span class="pre">+?</span></tt>, <tt class="docutils literal"><span class="pre">??</span></tt></dt>
<dd>The <tt class="docutils literal"><span class="pre">'*'</span></tt>, <tt class="docutils literal"><span class="pre">'+'</span></tt>, and <tt class="docutils literal"><span class="pre">'?'</span></tt> qualifiers are all <em class="dfn">greedy</em>; they match
as much text as possible. Sometimes this behaviour isn’t desired; if the RE
<tt class="docutils literal"><span class="pre"><.*></span></tt> is matched against <tt class="docutils literal"><span class="pre">'<H1>title</H1>'</span></tt>, it will match the entire
string, and not just <tt class="docutils literal"><span class="pre">'<H1>'</span></tt>. Adding <tt class="docutils literal"><span class="pre">'?'</span></tt> after the qualifier makes it
perform the match in <em class="dfn">non-greedy</em> or <em class="dfn">minimal</em> fashion; as <em>few</em>
characters as possible will be matched. Using <tt class="docutils literal"><span class="pre">.*?</span></tt> in the previous
expression will match only <tt class="docutils literal"><span class="pre">'<H1>'</span></tt>.</dd>
<dt><tt class="docutils literal"><span class="pre">{m}</span></tt></dt>
<dd>Specifies that exactly <em>m</em> copies of the previous RE should be matched; fewer
matches cause the entire RE not to match. For example, <tt class="docutils literal"><span class="pre">a{6}</span></tt> will match
exactly six <tt class="docutils literal"><span class="pre">'a'</span></tt> characters, but not five.</dd>
<dt><tt class="docutils literal"><span class="pre">{m,n}</span></tt></dt>
<dd>Causes the resulting RE to match from <em>m</em> to <em>n</em> repetitions of the preceding
RE, attempting to match as many repetitions as possible. For example,
<tt class="docutils literal"><span class="pre">a{3,5}</span></tt> will match from 3 to 5 <tt class="docutils literal"><span class="pre">'a'</span></tt> characters. Omitting <em>m</em> specifies a
lower bound of zero, and omitting <em>n</em> specifies an infinite upper bound. As an
example, <tt class="docutils literal"><span class="pre">a{4,}b</span></tt> will match <tt class="docutils literal"><span class="pre">aaaab</span></tt> or a thousand <tt class="docutils literal"><span class="pre">'a'</span></tt> characters
followed by a <tt class="docutils literal"><span class="pre">b</span></tt>, but not <tt class="docutils literal"><span class="pre">aaab</span></tt>. The comma may not be omitted or the
modifier would be confused with the previously described form.</dd>
<dt><tt class="docutils literal"><span class="pre">{m,n}?</span></tt></dt>
<dd>Causes the resulting RE to match from <em>m</em> to <em>n</em> repetitions of the preceding
RE, attempting to match as <em>few</em> repetitions as possible. This is the
non-greedy version of the previous qualifier. For example, on the
6-character string <tt class="docutils literal"><span class="pre">'aaaaaa'</span></tt>, <tt class="docutils literal"><span class="pre">a{3,5}</span></tt> will match 5 <tt class="docutils literal"><span class="pre">'a'</span></tt> characters,
while <tt class="docutils literal"><span class="pre">a{3,5}?</span></tt> will only match 3 characters.</dd>
<dt><tt class="docutils literal"><span class="pre">'\'</span></tt></dt>
<dd><p class="first">Either escapes special characters (permitting you to match characters like
<tt class="docutils literal"><span class="pre">'*'</span></tt>, <tt class="docutils literal"><span class="pre">'?'</span></tt>, and so forth), or signals a special sequence; special
sequences are discussed below.</p>
<p class="last">If you’re not using a raw string to express the pattern, remember that Python
also uses the backslash as an escape sequence in string literals; if the escape
sequence isn’t recognized by Python’s parser, the backslash and subsequent
character are included in the resulting string. However, if Python would
recognize the resulting sequence, the backslash should be repeated twice. This
is complicated and hard to understand, so it’s highly recommended that you use
raw strings for all but the simplest expressions.</p>
</dd>
<dt><tt class="docutils literal"><span class="pre">[]</span></tt></dt>
<dd><p class="first">Used to indicate a set of characters. In a set:</p>
<ul class="last simple">
<li>Characters can be listed individually, e.g. <tt class="docutils literal"><span class="pre">[amk]</span></tt> will match <tt class="docutils literal"><span class="pre">'a'</span></tt>,
<tt class="docutils literal"><span class="pre">'m'</span></tt>, or <tt class="docutils literal"><span class="pre">'k'</span></tt>.</li>
<li>Ranges of characters can be indicated by giving two characters and separating
them by a <tt class="docutils literal"><span class="pre">'-'</span></tt>, for example <tt class="docutils literal"><span class="pre">[a-z]</span></tt> will match any lowercase ASCII letter,
<tt class="docutils literal"><span class="pre">[0-5][0-9]</span></tt> will match all the two-digits numbers from <tt class="docutils literal"><span class="pre">00</span></tt> to <tt class="docutils literal"><span class="pre">59</span></tt>, and
<tt class="docutils literal"><span class="pre">[0-9A-Fa-f]</span></tt> will match any hexadecimal digit. If <tt class="docutils literal"><span class="pre">-</span></tt> is escaped (e.g.
<tt class="docutils literal"><span class="pre">[a\-z]</span></tt>) or if it’s placed as the first or last character (e.g. <tt class="docutils literal"><span class="pre">[a-]</span></tt>),
it will match a literal <tt class="docutils literal"><span class="pre">'-'</span></tt>.</li>
<li>Special characters lose their special meaning inside sets. For example,
<tt class="docutils literal"><span class="pre">[(+*)]</span></tt> will match any of the literal characters <tt class="docutils literal"><span class="pre">'('</span></tt>, <tt class="docutils literal"><span class="pre">'+'</span></tt>,
<tt class="docutils literal"><span class="pre">'*'</span></tt>, or <tt class="docutils literal"><span class="pre">')'</span></tt>.</li>
<li>Character classes such as <tt class="docutils literal"><span class="pre">\w</span></tt> or <tt class="docutils literal"><span class="pre">\S</span></tt> (defined below) are also accepted
inside a set, although the characters they match depends on whether
<a class="reference internal" href="#re.LOCALE" title="re.LOCALE"><tt class="xref py py-const docutils literal"><span class="pre">LOCALE</span></tt></a> or <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> mode is in force.</li>
<li>Characters that are not within a range can be matched by <em class="dfn">complementing</em>
the set. If the first character of the set is <tt class="docutils literal"><span class="pre">'^'</span></tt>, all the characters
that are <em>not</em> in the set will be matched. For example, <tt class="docutils literal"><span class="pre">[^5]</span></tt> will match
any character except <tt class="docutils literal"><span class="pre">'5'</span></tt>, and <tt class="docutils literal"><span class="pre">[^^]</span></tt> will match any character except
<tt class="docutils literal"><span class="pre">'^'</span></tt>. <tt class="docutils literal"><span class="pre">^</span></tt> has no special meaning if it’s not the first character in
the set.</li>
<li>To match a literal <tt class="docutils literal"><span class="pre">']'</span></tt> inside a set, precede it with a backslash, or
place it at the beginning of the set. For example, both <tt class="docutils literal"><span class="pre">[()[\]{}]</span></tt> and
<tt class="docutils literal"><span class="pre">[]()[{}]</span></tt> will both match a parenthesis.</li>
</ul>
</dd>
<dt><tt class="docutils literal"><span class="pre">'|'</span></tt></dt>
<dd><tt class="docutils literal"><span class="pre">A|B</span></tt>, where A and B can be arbitrary REs, creates a regular expression that
will match either A or B. An arbitrary number of REs can be separated by the
<tt class="docutils literal"><span class="pre">'|'</span></tt> in this way. This can be used inside groups (see below) as well. As
the target string is scanned, REs separated by <tt class="docutils literal"><span class="pre">'|'</span></tt> are tried from left to
right. When one pattern completely matches, that branch is accepted. This means
that once <tt class="docutils literal"><span class="pre">A</span></tt> matches, <tt class="docutils literal"><span class="pre">B</span></tt> will not be tested further, even if it would
produce a longer overall match. In other words, the <tt class="docutils literal"><span class="pre">'|'</span></tt> operator is never
greedy. To match a literal <tt class="docutils literal"><span class="pre">'|'</span></tt>, use <tt class="docutils literal"><span class="pre">\|</span></tt>, or enclose it inside a
character class, as in <tt class="docutils literal"><span class="pre">[|]</span></tt>.</dd>
<dt><tt class="docutils literal"><span class="pre">(...)</span></tt></dt>
<dd>Matches whatever regular expression is inside the parentheses, and indicates the
start and end of a group; the contents of a group can be retrieved after a match
has been performed, and can be matched later in the string with the <tt class="docutils literal"><span class="pre">\number</span></tt>
special sequence, described below. To match the literals <tt class="docutils literal"><span class="pre">'('</span></tt> or <tt class="docutils literal"><span class="pre">')'</span></tt>,
use <tt class="docutils literal"><span class="pre">\(</span></tt> or <tt class="docutils literal"><span class="pre">\)</span></tt>, or enclose them inside a character class: <tt class="docutils literal"><span class="pre">[(]</span> <span class="pre">[)]</span></tt>.</dd>
<dt><tt class="docutils literal"><span class="pre">(?...)</span></tt></dt>
<dd>This is an extension notation (a <tt class="docutils literal"><span class="pre">'?'</span></tt> following a <tt class="docutils literal"><span class="pre">'('</span></tt> is not meaningful
otherwise). The first character after the <tt class="docutils literal"><span class="pre">'?'</span></tt> determines what the meaning
and further syntax of the construct is. Extensions usually do not create a new
group; <tt class="docutils literal"><span class="pre">(?P<name>...)</span></tt> is the only exception to this rule. Following are the
currently supported extensions.</dd>
<dt><tt class="docutils literal"><span class="pre">(?iLmsux)</span></tt></dt>
<dd><p class="first">(One or more letters from the set <tt class="docutils literal"><span class="pre">'i'</span></tt>, <tt class="docutils literal"><span class="pre">'L'</span></tt>, <tt class="docutils literal"><span class="pre">'m'</span></tt>, <tt class="docutils literal"><span class="pre">'s'</span></tt>,
<tt class="docutils literal"><span class="pre">'u'</span></tt>, <tt class="docutils literal"><span class="pre">'x'</span></tt>.) The group matches the empty string; the letters
set the corresponding flags: <a class="reference internal" href="#re.I" title="re.I"><tt class="xref py py-const docutils literal"><span class="pre">re.I</span></tt></a> (ignore case),
<a class="reference internal" href="#re.L" title="re.L"><tt class="xref py py-const docutils literal"><span class="pre">re.L</span></tt></a> (locale dependent), <a class="reference internal" href="#re.M" title="re.M"><tt class="xref py py-const docutils literal"><span class="pre">re.M</span></tt></a> (multi-line),
<a class="reference internal" href="#re.S" title="re.S"><tt class="xref py py-const docutils literal"><span class="pre">re.S</span></tt></a> (dot matches all), <a class="reference internal" href="#re.U" title="re.U"><tt class="xref py py-const docutils literal"><span class="pre">re.U</span></tt></a> (Unicode dependent),
and <a class="reference internal" href="#re.X" title="re.X"><tt class="xref py py-const docutils literal"><span class="pre">re.X</span></tt></a> (verbose), for the entire regular expression. (The
flags are described in <a class="reference internal" href="#contents-of-module-re"><em>Module Contents</em></a>.) This
is useful if you wish to include the flags as part of the regular
expression, instead of passing a <em>flag</em> argument to the
<a class="reference internal" href="#re.compile" title="re.compile"><tt class="xref py py-func docutils literal"><span class="pre">re.compile()</span></tt></a> function.</p>
<p class="last">Note that the <tt class="docutils literal"><span class="pre">(?x)</span></tt> flag changes how the expression is parsed. It should be
used first in the expression string, or after one or more whitespace characters.
If there are non-whitespace characters before the flag, the results are
undefined.</p>
</dd>
<dt><tt class="docutils literal"><span class="pre">(?:...)</span></tt></dt>
<dd>A non-capturing version of regular parentheses. Matches whatever regular
expression is inside the parentheses, but the substring matched by the group
<em>cannot</em> be retrieved after performing a match or referenced later in the
pattern.</dd>
<dt><tt class="docutils literal"><span class="pre">(?P<name>...)</span></tt></dt>
<dd><p class="first">Similar to regular parentheses, but the substring matched by the group is
accessible within the rest of the regular expression via the symbolic group
name <em>name</em>. Group names must be valid Python identifiers, and each group
name must be defined only once within a regular expression. A symbolic group
is also a numbered group, just as if the group were not named. So the group
named <tt class="docutils literal"><span class="pre">id</span></tt> in the example below can also be referenced as the numbered group
<tt class="docutils literal"><span class="pre">1</span></tt>.</p>
<p class="last">For example, if the pattern is <tt class="docutils literal"><span class="pre">(?P<id>[a-zA-Z_]\w*)</span></tt>, the group can be
referenced by its name in arguments to methods of match objects, such as
<tt class="docutils literal"><span class="pre">m.group('id')</span></tt> or <tt class="docutils literal"><span class="pre">m.end('id')</span></tt>, and also by name in the regular
expression itself (using <tt class="docutils literal"><span class="pre">(?P=id)</span></tt>) and replacement text given to
<tt class="docutils literal"><span class="pre">.sub()</span></tt> (using <tt class="docutils literal"><span class="pre">\g<id></span></tt>).</p>
</dd>
<dt><tt class="docutils literal"><span class="pre">(?P=name)</span></tt></dt>
<dd>Matches whatever text was matched by the earlier group named <em>name</em>.</dd>
<dt><tt class="docutils literal"><span class="pre">(?#...)</span></tt></dt>
<dd>A comment; the contents of the parentheses are simply ignored.</dd>
<dt><tt class="docutils literal"><span class="pre">(?=...)</span></tt></dt>
<dd>Matches if <tt class="docutils literal"><span class="pre">...</span></tt> matches next, but doesn’t consume any of the string. This is
called a lookahead assertion. For example, <tt class="docutils literal"><span class="pre">Isaac</span> <span class="pre">(?=Asimov)</span></tt> will match
<tt class="docutils literal"><span class="pre">'Isaac</span> <span class="pre">'</span></tt> only if it’s followed by <tt class="docutils literal"><span class="pre">'Asimov'</span></tt>.</dd>
<dt><tt class="docutils literal"><span class="pre">(?!...)</span></tt></dt>
<dd>Matches if <tt class="docutils literal"><span class="pre">...</span></tt> doesn’t match next. This is a negative lookahead assertion.
For example, <tt class="docutils literal"><span class="pre">Isaac</span> <span class="pre">(?!Asimov)</span></tt> will match <tt class="docutils literal"><span class="pre">'Isaac</span> <span class="pre">'</span></tt> only if it’s <em>not</em>
followed by <tt class="docutils literal"><span class="pre">'Asimov'</span></tt>.</dd>
<dt><tt class="docutils literal"><span class="pre">(?<=...)</span></tt></dt>
<dd><p class="first">Matches if the current position in the string is preceded by a match for <tt class="docutils literal"><span class="pre">...</span></tt>
that ends at the current position. This is called a <em class="dfn">positive lookbehind
assertion</em>. <tt class="docutils literal"><span class="pre">(?<=abc)def</span></tt> will find a match in <tt class="docutils literal"><span class="pre">abcdef</span></tt>, since the
lookbehind will back up 3 characters and check if the contained pattern matches.
The contained pattern must only match strings of some fixed length, meaning that
<tt class="docutils literal"><span class="pre">abc</span></tt> or <tt class="docutils literal"><span class="pre">a|b</span></tt> are allowed, but <tt class="docutils literal"><span class="pre">a*</span></tt> and <tt class="docutils literal"><span class="pre">a{3,4}</span></tt> are not. Note that
patterns which start with positive lookbehind assertions will not match at the
beginning of the string being searched; you will most likely want to use the
<a class="reference internal" href="#re.search" title="re.search"><tt class="xref py py-func docutils literal"><span class="pre">search()</span></tt></a> function rather than the <a class="reference internal" href="#re.match" title="re.match"><tt class="xref py py-func docutils literal"><span class="pre">match()</span></tt></a> function:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="kn">import</span> <span class="nn">re</span>
<span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">'(?<=abc)def'</span><span class="p">,</span> <span class="s">'abcdef'</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="go">'def'</span>
</pre></div>
</div>
<p>This example looks for a word following a hyphen:</p>
<div class="last highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">'(?<=-)\w+'</span><span class="p">,</span> <span class="s">'spam-egg'</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="go">'egg'</span>
</pre></div>
</div>
</dd>
<dt><tt class="docutils literal"><span class="pre">(?<!...)</span></tt></dt>
<dd>Matches if the current position in the string is not preceded by a match for
<tt class="docutils literal"><span class="pre">...</span></tt>. This is called a <em class="dfn">negative lookbehind assertion</em>. Similar to
positive lookbehind assertions, the contained pattern must only match strings of
some fixed length. Patterns which start with negative lookbehind assertions may
match at the beginning of the string being searched.</dd>
<dt><tt class="docutils literal"><span class="pre">(?(id/name)yes-pattern|no-pattern)</span></tt></dt>
<dd><p class="first">Will try to match with <tt class="docutils literal"><span class="pre">yes-pattern</span></tt> if the group with given <em>id</em> or <em>name</em>
exists, and with <tt class="docutils literal"><span class="pre">no-pattern</span></tt> if it doesn’t. <tt class="docutils literal"><span class="pre">no-pattern</span></tt> is optional and
can be omitted. For example, <tt class="docutils literal"><span class="pre">(<)?(\w+@\w+(?:\.\w+)+)(?(1)>)</span></tt> is a poor email
matching pattern, which will match with <tt class="docutils literal"><span class="pre">'<user@host.com>'</span></tt> as well as
<tt class="docutils literal"><span class="pre">'user@host.com'</span></tt>, but not with <tt class="docutils literal"><span class="pre">'<user@host.com'</span></tt>.</p>
<p class="last versionadded">
<span class="versionmodified">New in version 2.4.</span></p>
</dd>
</dl>
<p>The special sequences consist of <tt class="docutils literal"><span class="pre">'\'</span></tt> 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, <tt class="docutils literal"><span class="pre">\$</span></tt> matches the character <tt class="docutils literal"><span class="pre">'$'</span></tt>.</p>
<dl class="docutils">
<dt><tt class="docutils literal"><span class="pre">\number</span></tt></dt>
<dd>Matches the contents of the group of the same number. Groups are numbered
starting from 1. For example, <tt class="docutils literal"><span class="pre">(.+)</span> <span class="pre">\1</span></tt> matches <tt class="docutils literal"><span class="pre">'the</span> <span class="pre">the'</span></tt> or <tt class="docutils literal"><span class="pre">'55</span> <span class="pre">55'</span></tt>,
but not <tt class="docutils literal"><span class="pre">'the</span> <span class="pre">end'</span></tt> (note the space after the group). This special sequence
can only be used to match one of the first 99 groups. If the first digit of
<em>number</em> is 0, or <em>number</em> is 3 octal digits long, it will not be interpreted as
a group match, but as the character with octal value <em>number</em>. Inside the
<tt class="docutils literal"><span class="pre">'['</span></tt> and <tt class="docutils literal"><span class="pre">']'</span></tt> of a character class, all numeric escapes are treated as
characters.</dd>
<dt><tt class="docutils literal"><span class="pre">\A</span></tt></dt>
<dd>Matches only at the start of the string.</dd>
<dt><tt class="docutils literal"><span class="pre">\b</span></tt></dt>
<dd>Matches the empty string, but only at the beginning or end of a word. A word is
defined as a sequence of alphanumeric or underscore characters, so the end of a
word is indicated by whitespace or a non-alphanumeric, non-underscore character.
Note that formally, <tt class="docutils literal"><span class="pre">\b</span></tt> is defined as the boundary between a <tt class="docutils literal"><span class="pre">\w</span></tt> and
a <tt class="docutils literal"><span class="pre">\W</span></tt> character (or vice versa), or between <tt class="docutils literal"><span class="pre">\w</span></tt> and the beginning/end
of the string, so the precise set of characters deemed to be alphanumeric
depends on the values of the <tt class="docutils literal"><span class="pre">UNICODE</span></tt> and <tt class="docutils literal"><span class="pre">LOCALE</span></tt> flags.
For example, <tt class="docutils literal"><span class="pre">r'\bfoo\b'</span></tt> matches <tt class="docutils literal"><span class="pre">'foo'</span></tt>, <tt class="docutils literal"><span class="pre">'foo.'</span></tt>, <tt class="docutils literal"><span class="pre">'(foo)'</span></tt>,
<tt class="docutils literal"><span class="pre">'bar</span> <span class="pre">foo</span> <span class="pre">baz'</span></tt> but not <tt class="docutils literal"><span class="pre">'foobar'</span></tt> or <tt class="docutils literal"><span class="pre">'foo3'</span></tt>.
Inside a character range, <tt class="docutils literal"><span class="pre">\b</span></tt> represents the backspace character, for compatibility with Python’s string literals.</dd>
<dt><tt class="docutils literal"><span class="pre">\B</span></tt></dt>
<dd>Matches the empty string, but only when it is <em>not</em> at the beginning or end of a
word. This means that <tt class="docutils literal"><span class="pre">r'py\B'</span></tt> matches <tt class="docutils literal"><span class="pre">'python'</span></tt>, <tt class="docutils literal"><span class="pre">'py3'</span></tt>, <tt class="docutils literal"><span class="pre">'py2'</span></tt>,
but not <tt class="docutils literal"><span class="pre">'py'</span></tt>, <tt class="docutils literal"><span class="pre">'py.'</span></tt>, or <tt class="docutils literal"><span class="pre">'py!'</span></tt>.
<tt class="docutils literal"><span class="pre">\B</span></tt> is just the opposite of <tt class="docutils literal"><span class="pre">\b</span></tt>, so is also subject to the settings
of <tt class="docutils literal"><span class="pre">LOCALE</span></tt> and <tt class="docutils literal"><span class="pre">UNICODE</span></tt>.</dd>
<dt><tt class="docutils literal"><span class="pre">\d</span></tt></dt>
<dd>When the <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> flag is not specified, matches any decimal digit; this
is equivalent to the set <tt class="docutils literal"><span class="pre">[0-9]</span></tt>. With <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a>, it will match
whatever is classified as a decimal digit in the Unicode character properties
database.</dd>
<dt><tt class="docutils literal"><span class="pre">\D</span></tt></dt>
<dd>When the <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> flag is not specified, matches any non-digit
character; this is equivalent to the set <tt class="docutils literal"><span class="pre">[^0-9]</span></tt>. With <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a>, it
will match anything other than character marked as digits in the Unicode
character properties database.</dd>
<dt><tt class="docutils literal"><span class="pre">\s</span></tt></dt>
<dd>When the <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> flag is not specified, it matches any whitespace
character, this is equivalent to the set <tt class="docutils literal"><span class="pre">[</span> <span class="pre">\t\n\r\f\v]</span></tt>. The
<a class="reference internal" href="#re.LOCALE" title="re.LOCALE"><tt class="xref py py-const docutils literal"><span class="pre">LOCALE</span></tt></a> flag has no extra effect on matching of the space.
If <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> is set, this will match the characters <tt class="docutils literal"><span class="pre">[</span> <span class="pre">\t\n\r\f\v]</span></tt>
plus whatever is classified as space in the Unicode character properties
database.</dd>
<dt><tt class="docutils literal"><span class="pre">\S</span></tt></dt>
<dd>When the <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> flags is not specified, matches any non-whitespace
character; this is equivalent to the set <tt class="docutils literal"><span class="pre">[^</span> <span class="pre">\t\n\r\f\v]</span></tt> The
<a class="reference internal" href="#re.LOCALE" title="re.LOCALE"><tt class="xref py py-const docutils literal"><span class="pre">LOCALE</span></tt></a> flag has no extra effect on non-whitespace match. If
<a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> is set, then any character not marked as space in the
Unicode character properties database is matched.</dd>
<dt><tt class="docutils literal"><span class="pre">\w</span></tt></dt>
<dd>When the <a class="reference internal" href="#re.LOCALE" title="re.LOCALE"><tt class="xref py py-const docutils literal"><span class="pre">LOCALE</span></tt></a> and <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> flags are not specified, matches
any alphanumeric character and the underscore; this is equivalent to the set
<tt class="docutils literal"><span class="pre">[a-zA-Z0-9_]</span></tt>. With <a class="reference internal" href="#re.LOCALE" title="re.LOCALE"><tt class="xref py py-const docutils literal"><span class="pre">LOCALE</span></tt></a>, it will match the set <tt class="docutils literal"><span class="pre">[0-9_]</span></tt> plus
whatever characters are defined as alphanumeric for the current locale. If
<a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> is set, this will match the characters <tt class="docutils literal"><span class="pre">[0-9_]</span></tt> plus whatever
is classified as alphanumeric in the Unicode character properties database.</dd>
<dt><tt class="docutils literal"><span class="pre">\W</span></tt></dt>
<dd>When the <a class="reference internal" href="#re.LOCALE" title="re.LOCALE"><tt class="xref py py-const docutils literal"><span class="pre">LOCALE</span></tt></a> and <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> flags are not specified, matches
any non-alphanumeric character; this is equivalent to the set <tt class="docutils literal"><span class="pre">[^a-zA-Z0-9_]</span></tt>.
With <a class="reference internal" href="#re.LOCALE" title="re.LOCALE"><tt class="xref py py-const docutils literal"><span class="pre">LOCALE</span></tt></a>, it will match any character not in the set <tt class="docutils literal"><span class="pre">[0-9_]</span></tt>, and
not defined as alphanumeric for the current locale. If <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> is set,
this will match anything other than <tt class="docutils literal"><span class="pre">[0-9_]</span></tt> plus characters classied as
not alphanumeric in the Unicode character properties database.</dd>
<dt><tt class="docutils literal"><span class="pre">\Z</span></tt></dt>
<dd>Matches only at the end of the string.</dd>
</dl>
<p>If both <a class="reference internal" href="#re.LOCALE" title="re.LOCALE"><tt class="xref py py-const docutils literal"><span class="pre">LOCALE</span></tt></a> and <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a> flags are included for a
particular sequence, then <a class="reference internal" href="#re.LOCALE" title="re.LOCALE"><tt class="xref py py-const docutils literal"><span class="pre">LOCALE</span></tt></a> flag takes effect first followed by
the <a class="reference internal" href="#re.UNICODE" title="re.UNICODE"><tt class="xref py py-const docutils literal"><span class="pre">UNICODE</span></tt></a>.</p>
<p>Most of the standard escapes supported by Python string literals are also
accepted by the regular expression parser:</p>
<div class="highlight-python"><pre>\a \b \f \n
\r \t \v \x
\\</pre>
</div>
<p>(Note that <tt class="docutils literal"><span class="pre">\b</span></tt> is used to represent word boundaries, and means “backspace”
only inside character classes.)</p>
<p>Octal escapes are included in a limited form: If the first digit is a 0, or if
there are three octal digits, it is considered an octal escape. Otherwise, it is
a group reference. As for string literals, octal escapes are always at most
three digits in length.</p>
</div>
<div class="section" id="module-contents">
<span id="contents-of-module-re"></span><h2>7.2.2. Module Contents<a class="headerlink" href="#module-contents" title="Permalink to this headline">¶</a></h2>
<p>The module defines several functions, constants, and an exception. Some of the
functions are simplified versions of the full featured methods for compiled
regular expressions. Most non-trivial applications always use the compiled
form.</p>
<dl class="function">
<dt id="re.compile">
<tt class="descclassname">re.</tt><tt class="descname">compile</tt><big>(</big><em>pattern</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#re.compile" title="Permalink to this definition">¶</a></dt>
<dd><p>Compile a regular expression pattern into a regular expression object, which
can be used for matching using its <a class="reference internal" href="#re.match" title="re.match"><tt class="xref py py-func docutils literal"><span class="pre">match()</span></tt></a> and <a class="reference internal" href="#re.search" title="re.search"><tt class="xref py py-func docutils literal"><span class="pre">search()</span></tt></a> methods,
described below.</p>
<p>The expression’s behaviour can be modified by specifying a <em>flags</em> value.
Values can be any of the following variables, combined using bitwise OR (the
<tt class="docutils literal"><span class="pre">|</span></tt> operator).</p>
<p>The sequence</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">prog</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="n">pattern</span><span class="p">)</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">prog</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="n">string</span><span class="p">)</span>
</pre></div>
</div>
<p>is equivalent to</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">result</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="n">pattern</span><span class="p">,</span> <span class="n">string</span><span class="p">)</span>
</pre></div>
</div>
<p>but using <a class="reference internal" href="#re.compile" title="re.compile"><tt class="xref py py-func docutils literal"><span class="pre">re.compile()</span></tt></a> and saving the resulting regular expression
object for reuse is more efficient when the expression will be used several
times in a single program.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The compiled versions of the most recent patterns passed to
<a class="reference internal" href="#re.match" title="re.match"><tt class="xref py py-func docutils literal"><span class="pre">re.match()</span></tt></a>, <a class="reference internal" href="#re.search" title="re.search"><tt class="xref py py-func docutils literal"><span class="pre">re.search()</span></tt></a> or <a class="reference internal" href="#re.compile" title="re.compile"><tt class="xref py py-func docutils literal"><span class="pre">re.compile()</span></tt></a> are cached, so
programs that use only a few regular expressions at a time needn’t worry
about compiling regular expressions.</p>
</div>
</dd></dl>
<dl class="data">
<dt id="re.DEBUG">
<tt class="descclassname">re.</tt><tt class="descname">DEBUG</tt><a class="headerlink" href="#re.DEBUG" title="Permalink to this definition">¶</a></dt>
<dd><p>Display debug information about compiled expression.</p>
</dd></dl>
<dl class="data">
<dt id="re.I">
<tt class="descclassname">re.</tt><tt class="descname">I</tt><a class="headerlink" href="#re.I" title="Permalink to this definition">¶</a></dt>
<dt id="re.IGNORECASE">
<tt class="descclassname">re.</tt><tt class="descname">IGNORECASE</tt><a class="headerlink" href="#re.IGNORECASE" title="Permalink to this definition">¶</a></dt>
<dd><p>Perform case-insensitive matching; expressions like <tt class="docutils literal"><span class="pre">[A-Z]</span></tt> will match
lowercase letters, too. This is not affected by the current locale.</p>
</dd></dl>
<dl class="data">
<dt id="re.L">
<tt class="descclassname">re.</tt><tt class="descname">L</tt><a class="headerlink" href="#re.L" title="Permalink to this definition">¶</a></dt>
<dt id="re.LOCALE">
<tt class="descclassname">re.</tt><tt class="descname">LOCALE</tt><a class="headerlink" href="#re.LOCALE" title="Permalink to this definition">¶</a></dt>
<dd><p>Make <tt class="docutils literal"><span class="pre">\w</span></tt>, <tt class="docutils literal"><span class="pre">\W</span></tt>, <tt class="docutils literal"><span class="pre">\b</span></tt>, <tt class="docutils literal"><span class="pre">\B</span></tt>, <tt class="docutils literal"><span class="pre">\s</span></tt> and <tt class="docutils literal"><span class="pre">\S</span></tt> dependent on the
current locale.</p>
</dd></dl>
<dl class="data">
<dt id="re.M">
<tt class="descclassname">re.</tt><tt class="descname">M</tt><a class="headerlink" href="#re.M" title="Permalink to this definition">¶</a></dt>
<dt id="re.MULTILINE">
<tt class="descclassname">re.</tt><tt class="descname">MULTILINE</tt><a class="headerlink" href="#re.MULTILINE" title="Permalink to this definition">¶</a></dt>
<dd><p>When specified, the pattern character <tt class="docutils literal"><span class="pre">'^'</span></tt> matches at the beginning of the
string and at the beginning of each line (immediately following each newline);
and the pattern character <tt class="docutils literal"><span class="pre">'$'</span></tt> matches at the end of the string and at the
end of each line (immediately preceding each newline). By default, <tt class="docutils literal"><span class="pre">'^'</span></tt>
matches only at the beginning of the string, and <tt class="docutils literal"><span class="pre">'$'</span></tt> only at the end of the
string and immediately before the newline (if any) at the end of the string.</p>
</dd></dl>
<dl class="data">
<dt id="re.S">
<tt class="descclassname">re.</tt><tt class="descname">S</tt><a class="headerlink" href="#re.S" title="Permalink to this definition">¶</a></dt>
<dt id="re.DOTALL">
<tt class="descclassname">re.</tt><tt class="descname">DOTALL</tt><a class="headerlink" href="#re.DOTALL" title="Permalink to this definition">¶</a></dt>
<dd><p>Make the <tt class="docutils literal"><span class="pre">'.'</span></tt> special character match any character at all, including a
newline; without this flag, <tt class="docutils literal"><span class="pre">'.'</span></tt> will match anything <em>except</em> a newline.</p>
</dd></dl>
<dl class="data">
<dt id="re.U">
<tt class="descclassname">re.</tt><tt class="descname">U</tt><a class="headerlink" href="#re.U" title="Permalink to this definition">¶</a></dt>
<dt id="re.UNICODE">
<tt class="descclassname">re.</tt><tt class="descname">UNICODE</tt><a class="headerlink" href="#re.UNICODE" title="Permalink to this definition">¶</a></dt>
<dd><p>Make <tt class="docutils literal"><span class="pre">\w</span></tt>, <tt class="docutils literal"><span class="pre">\W</span></tt>, <tt class="docutils literal"><span class="pre">\b</span></tt>, <tt class="docutils literal"><span class="pre">\B</span></tt>, <tt class="docutils literal"><span class="pre">\d</span></tt>, <tt class="docutils literal"><span class="pre">\D</span></tt>, <tt class="docutils literal"><span class="pre">\s</span></tt> and <tt class="docutils literal"><span class="pre">\S</span></tt> dependent
on the Unicode character properties database.</p>
<p class="versionadded">
<span class="versionmodified">New in version 2.0.</span></p>
</dd></dl>
<dl class="data">
<dt id="re.X">
<tt class="descclassname">re.</tt><tt class="descname">X</tt><a class="headerlink" href="#re.X" title="Permalink to this definition">¶</a></dt>
<dt id="re.VERBOSE">
<tt class="descclassname">re.</tt><tt class="descname">VERBOSE</tt><a class="headerlink" href="#re.VERBOSE" title="Permalink to this definition">¶</a></dt>
<dd><p>This flag allows you to write regular expressions that look nicer. Whitespace
within the pattern is ignored, except when in a character class or preceded by
an unescaped backslash, and, when a line contains a <tt class="docutils literal"><span class="pre">'#'</span></tt> neither in a
character class or preceded by an unescaped backslash, all characters from the
leftmost such <tt class="docutils literal"><span class="pre">'#'</span></tt> through the end of the line are ignored.</p>
<p>That means that the two following regular expression objects that match a
decimal number are functionally equal:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">a</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s">r"""\d + # the integral part</span>
<span class="s"> \. # the decimal point</span>
<span class="s"> \d * # some fractional digits"""</span><span class="p">,</span> <span class="n">re</span><span class="o">.</span><span class="n">X</span><span class="p">)</span>
<span class="n">b</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s">r"\d+\.\d*"</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>
<dl class="function">
<dt id="re.search">
<tt class="descclassname">re.</tt><tt class="descname">search</tt><big>(</big><em>pattern</em>, <em>string</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#re.search" title="Permalink to this definition">¶</a></dt>
<dd><p>Scan through <em>string</em> looking for a location where the regular expression
<em>pattern</em> produces a match, and return a corresponding <a class="reference internal" href="#re.MatchObject" title="re.MatchObject"><tt class="xref py py-class docutils literal"><span class="pre">MatchObject</span></tt></a>
instance. Return <tt class="docutils literal"><span class="pre">None</span></tt> if no position in the string matches the pattern; note
that this is different from finding a zero-length match at some point in the
string.</p>
</dd></dl>
<dl class="function">
<dt id="re.match">
<tt class="descclassname">re.</tt><tt class="descname">match</tt><big>(</big><em>pattern</em>, <em>string</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#re.match" title="Permalink to this definition">¶</a></dt>
<dd><p>If zero or more characters at the beginning of <em>string</em> match the regular
expression <em>pattern</em>, return a corresponding <a class="reference internal" href="#re.MatchObject" title="re.MatchObject"><tt class="xref py py-class docutils literal"><span class="pre">MatchObject</span></tt></a> instance.
Return <tt class="docutils literal"><span class="pre">None</span></tt> if the string does not match the pattern; note that this is
different from a zero-length match.</p>
<p>Note that even in <a class="reference internal" href="#re.MULTILINE" title="re.MULTILINE"><tt class="xref py py-const docutils literal"><span class="pre">MULTILINE</span></tt></a> mode, <a class="reference internal" href="#re.match" title="re.match"><tt class="xref py py-func docutils literal"><span class="pre">re.match()</span></tt></a> will only match
at the beginning of the string and not at the beginning of each line.</p>
<p>If you want to locate a match anywhere in <em>string</em>, use <a class="reference internal" href="#re.search" title="re.search"><tt class="xref py py-func docutils literal"><span class="pre">search()</span></tt></a>
instead (see also <a class="reference internal" href="#search-vs-match"><em>search() vs. match()</em></a>).</p>
</dd></dl>
<dl class="function">
<dt id="re.split">
<tt class="descclassname">re.</tt><tt class="descname">split</tt><big>(</big><em>pattern</em>, <em>string</em>, <em>maxsplit=0</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#re.split" title="Permalink to this definition">¶</a></dt>
<dd><p>Split <em>string</em> by the occurrences of <em>pattern</em>. If capturing parentheses are
used in <em>pattern</em>, then the text of all groups in the pattern are also returned
as part of the resulting list. If <em>maxsplit</em> is nonzero, at most <em>maxsplit</em>
splits occur, and the remainder of the string is returned as the final element
of the list. (Incompatibility note: in the original Python 1.5 release,
<em>maxsplit</em> was ignored. This has been fixed in later releases.)</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">'\W+'</span><span class="p">,</span> <span class="s">'Words, words, words.'</span><span class="p">)</span>
<span class="go">['Words', 'words', 'words', '']</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">'(\W+)'</span><span class="p">,</span> <span class="s">'Words, words, words.'</span><span class="p">)</span>
<span class="go">['Words', ', ', 'words', ', ', 'words', '.', '']</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">'\W+'</span><span class="p">,</span> <span class="s">'Words, words, words.'</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
<span class="go">['Words', 'words, words.']</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">'[a-f]+'</span><span class="p">,</span> <span class="s">'0a3B9'</span><span class="p">,</span> <span class="n">flags</span><span class="o">=</span><span class="n">re</span><span class="o">.</span><span class="n">IGNORECASE</span><span class="p">)</span>
<span class="go">['0', '3', '9']</span>
</pre></div>
</div>
<p>If there are capturing groups in the separator and it matches at the start of
the string, the result will start with an empty string. The same holds for
the end of the string:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">'(\W+)'</span><span class="p">,</span> <span class="s">'...words, words...'</span><span class="p">)</span>
<span class="go">['', '...', 'words', ', ', 'words', '...', '']</span>
</pre></div>
</div>
<p>That way, separator components are always found at the same relative
indices within the result list (e.g., if there’s one capturing group
in the separator, the 0th, the 2nd and so forth).</p>
<p>Note that <em>split</em> will never split a string on an empty pattern match.
For example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">'x*'</span><span class="p">,</span> <span class="s">'foo'</span><span class="p">)</span>
<span class="go">['foo']</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">"(?m)^$"</span><span class="p">,</span> <span class="s">"foo</span><span class="se">\n\n</span><span class="s">bar</span><span class="se">\n</span><span class="s">"</span><span class="p">)</span>
<span class="go">['foo\n\nbar\n']</span>
</pre></div>
</div>
<p class="versionchanged">
<span class="versionmodified">Changed in version 2.7: </span>Added the optional flags argument.</p>
</dd></dl>
<dl class="function">
<dt id="re.findall">
<tt class="descclassname">re.</tt><tt class="descname">findall</tt><big>(</big><em>pattern</em>, <em>string</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#re.findall" title="Permalink to this definition">¶</a></dt>
<dd><p>Return all non-overlapping matches of <em>pattern</em> in <em>string</em>, as a list of
strings. The <em>string</em> is scanned left-to-right, and matches are returned in
the order found. If one or more groups are present in the pattern, return a
list of groups; this will be a list of tuples if the pattern has more than
one group. Empty matches are included in the result unless they touch the
beginning of another match.</p>
<p class="versionadded">
<span class="versionmodified">New in version 1.5.2.</span></p>
<p class="versionchanged">
<span class="versionmodified">Changed in version 2.4: </span>Added the optional flags argument.</p>
</dd></dl>
<dl class="function">
<dt id="re.finditer">
<tt class="descclassname">re.</tt><tt class="descname">finditer</tt><big>(</big><em>pattern</em>, <em>string</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#re.finditer" title="Permalink to this definition">¶</a></dt>
<dd><p>Return an <a class="reference internal" href="../glossary.html#term-iterator"><em class="xref std std-term">iterator</em></a> yielding <a class="reference internal" href="#re.MatchObject" title="re.MatchObject"><tt class="xref py py-class docutils literal"><span class="pre">MatchObject</span></tt></a> instances over all
non-overlapping matches for the RE <em>pattern</em> in <em>string</em>. The <em>string</em> is
scanned left-to-right, and matches are returned in the order found. Empty
matches are included in the result unless they touch the beginning of another
match.</p>
<p class="versionadded">
<span class="versionmodified">New in version 2.2.</span></p>
<p class="versionchanged">
<span class="versionmodified">Changed in version 2.4: </span>Added the optional flags argument.</p>
</dd></dl>
<dl class="function">
<dt id="re.sub">
<tt class="descclassname">re.</tt><tt class="descname">sub</tt><big>(</big><em>pattern</em>, <em>repl</em>, <em>string</em>, <em>count=0</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#re.sub" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the string obtained by replacing the leftmost non-overlapping occurrences
of <em>pattern</em> in <em>string</em> by the replacement <em>repl</em>. If the pattern isn’t found,
<em>string</em> is returned unchanged. <em>repl</em> can be a string or a function; if it is
a string, any backslash escapes in it are processed. That is, <tt class="docutils literal"><span class="pre">\n</span></tt> is
converted to a single newline character, <tt class="docutils literal"><span class="pre">\r</span></tt> is converted to a carriage return, and
so forth. Unknown escapes such as <tt class="docutils literal"><span class="pre">\j</span></tt> are left alone. Backreferences, such
as <tt class="docutils literal"><span class="pre">\6</span></tt>, are replaced with the substring matched by group 6 in the pattern.
For example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s">r'def\s+([a-zA-Z_][a-zA-Z_0-9]*)\s*\(\s*\):'</span><span class="p">,</span>
<span class="gp">... </span> <span class="s">r'static PyObject*\npy_\1(void)\n{'</span><span class="p">,</span>
<span class="gp">... </span> <span class="s">'def myfunc():'</span><span class="p">)</span>
<span class="go">'static PyObject*\npy_myfunc(void)\n{'</span>
</pre></div>
</div>
<p>If <em>repl</em> is a function, it is called for every non-overlapping occurrence of
<em>pattern</em>. The function takes a single match object argument, and returns the
replacement string. For example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="k">def</span> <span class="nf">dashrepl</span><span class="p">(</span><span class="n">matchobj</span><span class="p">):</span>
<span class="gp">... </span> <span class="k">if</span> <span class="n">matchobj</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span> <span class="o">==</span> <span class="s">'-'</span><span class="p">:</span> <span class="k">return</span> <span class="s">' '</span>
<span class="gp">... </span> <span class="k">else</span><span class="p">:</span> <span class="k">return</span> <span class="s">'-'</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s">'-{1,2}'</span><span class="p">,</span> <span class="n">dashrepl</span><span class="p">,</span> <span class="s">'pro----gram-files'</span><span class="p">)</span>
<span class="go">'pro--gram files'</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s">r'\sAND\s'</span><span class="p">,</span> <span class="s">' & '</span><span class="p">,</span> <span class="s">'Baked Beans And Spam'</span><span class="p">,</span> <span class="n">flags</span><span class="o">=</span><span class="n">re</span><span class="o">.</span><span class="n">IGNORECASE</span><span class="p">)</span>
<span class="go">'Baked Beans & Spam'</span>
</pre></div>
</div>
<p>The pattern may be a string or an RE object.</p>
<p>The optional argument <em>count</em> is the maximum number of pattern occurrences to be
replaced; <em>count</em> must be a non-negative integer. If omitted or zero, all
occurrences will be replaced. Empty matches for the pattern are replaced only
when not adjacent to a previous match, so <tt class="docutils literal"><span class="pre">sub('x*',</span> <span class="pre">'-',</span> <span class="pre">'abc')</span></tt> returns
<tt class="docutils literal"><span class="pre">'-a-b-c-'</span></tt>.</p>
<p>In addition to character escapes and backreferences as described above,
<tt class="docutils literal"><span class="pre">\g<name></span></tt> will use the substring matched by the group named <tt class="docutils literal"><span class="pre">name</span></tt>, as
defined by the <tt class="docutils literal"><span class="pre">(?P<name>...)</span></tt> syntax. <tt class="docutils literal"><span class="pre">\g<number></span></tt> uses the corresponding
group number; <tt class="docutils literal"><span class="pre">\g<2></span></tt> is therefore equivalent to <tt class="docutils literal"><span class="pre">\2</span></tt>, but isn’t ambiguous
in a replacement such as <tt class="docutils literal"><span class="pre">\g<2>0</span></tt>. <tt class="docutils literal"><span class="pre">\20</span></tt> would be interpreted as a
reference to group 20, not a reference to group 2 followed by the literal
character <tt class="docutils literal"><span class="pre">'0'</span></tt>. The backreference <tt class="docutils literal"><span class="pre">\g<0></span></tt> substitutes in the entire
substring matched by the RE.</p>
<p class="versionchanged">
<span class="versionmodified">Changed in version 2.7: </span>Added the optional flags argument.</p>
</dd></dl>
<dl class="function">
<dt id="re.subn">
<tt class="descclassname">re.</tt><tt class="descname">subn</tt><big>(</big><em>pattern</em>, <em>repl</em>, <em>string</em>, <em>count=0</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#re.subn" title="Permalink to this definition">¶</a></dt>
<dd><p>Perform the same operation as <a class="reference internal" href="#re.sub" title="re.sub"><tt class="xref py py-func docutils literal"><span class="pre">sub()</span></tt></a>, but return a tuple <tt class="docutils literal"><span class="pre">(new_string,</span>
<span class="pre">number_of_subs_made)</span></tt>.</p>
<p class="versionchanged">
<span class="versionmodified">Changed in version 2.7: </span>Added the optional flags argument.</p>
</dd></dl>
<dl class="function">
<dt id="re.escape">
<tt class="descclassname">re.</tt><tt class="descname">escape</tt><big>(</big><em>string</em><big>)</big><a class="headerlink" href="#re.escape" title="Permalink to this definition">¶</a></dt>
<dd><p>Return <em>string</em> with all non-alphanumerics backslashed; this is useful if you
want to match an arbitrary literal string that may have regular expression
metacharacters in it.</p>
</dd></dl>
<dl class="function">
<dt id="re.purge">
<tt class="descclassname">re.</tt><tt class="descname">purge</tt><big>(</big><big>)</big><a class="headerlink" href="#re.purge" title="Permalink to this definition">¶</a></dt>
<dd><p>Clear the regular expression cache.</p>
</dd></dl>
<dl class="exception">
<dt id="re.error">
<em class="property">exception </em><tt class="descclassname">re.</tt><tt class="descname">error</tt><a class="headerlink" href="#re.error" title="Permalink to this definition">¶</a></dt>
<dd><p>Exception raised when a string passed to one of the functions here is not a
valid regular expression (for example, it might contain unmatched parentheses)
or when some other error occurs during compilation or matching. It is never an
error if a string contains no match for a pattern.</p>
</dd></dl>
</div>
<div class="section" id="regular-expression-objects">
<span id="re-objects"></span><h2>7.2.3. Regular Expression Objects<a class="headerlink" href="#regular-expression-objects" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="re.RegexObject">
<em class="property">class </em><tt class="descclassname">re.</tt><tt class="descname">RegexObject</tt><a class="headerlink" href="#re.RegexObject" title="Permalink to this definition">¶</a></dt>
<dd><p>The <a class="reference internal" href="#re.RegexObject" title="re.RegexObject"><tt class="xref py py-class docutils literal"><span class="pre">RegexObject</span></tt></a> class supports the following methods and attributes:</p>
<dl class="method">
<dt id="re.RegexObject.search">
<tt class="descname">search</tt><big>(</big><em>string</em><span class="optional">[</span>, <em>pos</em><span class="optional">[</span>, <em>endpos</em><span class="optional">]</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.RegexObject.search" title="Permalink to this definition">¶</a></dt>
<dd><p>Scan through <em>string</em> looking for a location where this regular expression
produces a match, and return a corresponding <a class="reference internal" href="#re.MatchObject" title="re.MatchObject"><tt class="xref py py-class docutils literal"><span class="pre">MatchObject</span></tt></a> instance.
Return <tt class="docutils literal"><span class="pre">None</span></tt> if no position in the string matches the pattern; note that this
is different from finding a zero-length match at some point in the string.</p>
<p>The optional second parameter <em>pos</em> gives an index in the string where the
search is to start; it defaults to <tt class="docutils literal"><span class="pre">0</span></tt>. This is not completely equivalent to
slicing the string; the <tt class="docutils literal"><span class="pre">'^'</span></tt> pattern character matches at the real beginning
of the string and at positions just after a newline, but not necessarily at the
index where the search is to start.</p>
<p>The optional parameter <em>endpos</em> limits how far the string will be searched; it
will be as if the string is <em>endpos</em> characters long, so only the characters
from <em>pos</em> to <tt class="docutils literal"><span class="pre">endpos</span> <span class="pre">-</span> <span class="pre">1</span></tt> will be searched for a match. If <em>endpos</em> is less
than <em>pos</em>, no match will be found, otherwise, if <em>rx</em> is a compiled regular
expression object, <tt class="docutils literal"><span class="pre">rx.search(string,</span> <span class="pre">0,</span> <span class="pre">50)</span></tt> is equivalent to
<tt class="docutils literal"><span class="pre">rx.search(string[:50],</span> <span class="pre">0)</span></tt>.</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">pattern</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s">"d"</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">pattern</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">"dog"</span><span class="p">)</span> <span class="c"># Match at index 0</span>
<span class="go"><_sre.SRE_Match object at ...></span>
<span class="gp">>>> </span><span class="n">pattern</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">"dog"</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span> <span class="c"># No match; search doesn't include the "d"</span>
</pre></div>
</div>
</dd></dl>
<dl class="method">
<dt id="re.RegexObject.match">
<tt class="descname">match</tt><big>(</big><em>string</em><span class="optional">[</span>, <em>pos</em><span class="optional">[</span>, <em>endpos</em><span class="optional">]</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.RegexObject.match" title="Permalink to this definition">¶</a></dt>
<dd><p>If zero or more characters at the <em>beginning</em> of <em>string</em> match this regular
expression, return a corresponding <a class="reference internal" href="#re.MatchObject" title="re.MatchObject"><tt class="xref py py-class docutils literal"><span class="pre">MatchObject</span></tt></a> instance. Return
<tt class="docutils literal"><span class="pre">None</span></tt> if the string does not match the pattern; note that this is different
from a zero-length match.</p>
<p>The optional <em>pos</em> and <em>endpos</em> parameters have the same meaning as for the
<a class="reference internal" href="#re.RegexObject.search" title="re.RegexObject.search"><tt class="xref py py-meth docutils literal"><span class="pre">search()</span></tt></a> method.</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">pattern</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s">"o"</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">pattern</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"dog"</span><span class="p">)</span> <span class="c"># No match as "o" is not at the start of "dog".</span>
<span class="gp">>>> </span><span class="n">pattern</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"dog"</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span> <span class="c"># Match as "o" is the 2nd character of "dog".</span>
<span class="go"><_sre.SRE_Match object at ...></span>
</pre></div>
</div>
<p>If you want to locate a match anywhere in <em>string</em>, use
<a class="reference internal" href="#re.RegexObject.search" title="re.RegexObject.search"><tt class="xref py py-meth docutils literal"><span class="pre">search()</span></tt></a> instead (see also <a class="reference internal" href="#search-vs-match"><em>search() vs. match()</em></a>).</p>
</dd></dl>
<dl class="method">
<dt id="re.RegexObject.split">
<tt class="descname">split</tt><big>(</big><em>string</em>, <em>maxsplit=0</em><big>)</big><a class="headerlink" href="#re.RegexObject.split" title="Permalink to this definition">¶</a></dt>
<dd><p>Identical to the <a class="reference internal" href="#re.split" title="re.split"><tt class="xref py py-func docutils literal"><span class="pre">split()</span></tt></a> function, using the compiled pattern.</p>
</dd></dl>
<dl class="method">
<dt id="re.RegexObject.findall">
<tt class="descname">findall</tt><big>(</big><em>string</em><span class="optional">[</span>, <em>pos</em><span class="optional">[</span>, <em>endpos</em><span class="optional">]</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.RegexObject.findall" title="Permalink to this definition">¶</a></dt>
<dd><p>Similar to the <a class="reference internal" href="#re.findall" title="re.findall"><tt class="xref py py-func docutils literal"><span class="pre">findall()</span></tt></a> function, using the compiled pattern, but
also accepts optional <em>pos</em> and <em>endpos</em> parameters that limit the search
region like for <a class="reference internal" href="#re.match" title="re.match"><tt class="xref py py-meth docutils literal"><span class="pre">match()</span></tt></a>.</p>
</dd></dl>
<dl class="method">
<dt id="re.RegexObject.finditer">
<tt class="descname">finditer</tt><big>(</big><em>string</em><span class="optional">[</span>, <em>pos</em><span class="optional">[</span>, <em>endpos</em><span class="optional">]</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.RegexObject.finditer" title="Permalink to this definition">¶</a></dt>
<dd><p>Similar to the <a class="reference internal" href="#re.finditer" title="re.finditer"><tt class="xref py py-func docutils literal"><span class="pre">finditer()</span></tt></a> function, using the compiled pattern, but
also accepts optional <em>pos</em> and <em>endpos</em> parameters that limit the search
region like for <a class="reference internal" href="#re.match" title="re.match"><tt class="xref py py-meth docutils literal"><span class="pre">match()</span></tt></a>.</p>
</dd></dl>
<dl class="method">
<dt id="re.RegexObject.sub">
<tt class="descname">sub</tt><big>(</big><em>repl</em>, <em>string</em>, <em>count=0</em><big>)</big><a class="headerlink" href="#re.RegexObject.sub" title="Permalink to this definition">¶</a></dt>
<dd><p>Identical to the <a class="reference internal" href="#re.sub" title="re.sub"><tt class="xref py py-func docutils literal"><span class="pre">sub()</span></tt></a> function, using the compiled pattern.</p>
</dd></dl>
<dl class="method">
<dt id="re.RegexObject.subn">
<tt class="descname">subn</tt><big>(</big><em>repl</em>, <em>string</em>, <em>count=0</em><big>)</big><a class="headerlink" href="#re.RegexObject.subn" title="Permalink to this definition">¶</a></dt>
<dd><p>Identical to the <a class="reference internal" href="#re.subn" title="re.subn"><tt class="xref py py-func docutils literal"><span class="pre">subn()</span></tt></a> function, using the compiled pattern.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.RegexObject.flags">
<tt class="descname">flags</tt><a class="headerlink" href="#re.RegexObject.flags" title="Permalink to this definition">¶</a></dt>
<dd><p>The regex matching flags. This is a combination of the flags given to
<a class="reference internal" href="#re.compile" title="re.compile"><tt class="xref py py-func docutils literal"><span class="pre">compile()</span></tt></a> and any <tt class="docutils literal"><span class="pre">(?...)</span></tt> inline flags in the pattern.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.RegexObject.groups">
<tt class="descname">groups</tt><a class="headerlink" href="#re.RegexObject.groups" title="Permalink to this definition">¶</a></dt>
<dd><p>The number of capturing groups in the pattern.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.RegexObject.groupindex">
<tt class="descname">groupindex</tt><a class="headerlink" href="#re.RegexObject.groupindex" title="Permalink to this definition">¶</a></dt>
<dd><p>A dictionary mapping any symbolic group names defined by <tt class="docutils literal"><span class="pre">(?P<id>)</span></tt> to group
numbers. The dictionary is empty if no symbolic groups were used in the
pattern.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.RegexObject.pattern">
<tt class="descname">pattern</tt><a class="headerlink" href="#re.RegexObject.pattern" title="Permalink to this definition">¶</a></dt>
<dd><p>The pattern string from which the RE object was compiled.</p>
</dd></dl>
</dd></dl>
</div>
<div class="section" id="match-objects">
<span id="id1"></span><h2>7.2.4. Match Objects<a class="headerlink" href="#match-objects" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="re.MatchObject">
<em class="property">class </em><tt class="descclassname">re.</tt><tt class="descname">MatchObject</tt><a class="headerlink" href="#re.MatchObject" title="Permalink to this definition">¶</a></dt>
<dd><p>Match objects always have a boolean value of <tt class="docutils literal"><span class="pre">True</span></tt>.
Since <tt class="xref py py-meth docutils literal"><span class="pre">match()</span></tt> and <tt class="xref py py-meth docutils literal"><span class="pre">search()</span></tt> return <tt class="docutils literal"><span class="pre">None</span></tt>
when there is no match, you can test whether there was a match with a simple
<tt class="docutils literal"><span class="pre">if</span></tt> statement:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">match</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="n">pattern</span><span class="p">,</span> <span class="n">string</span><span class="p">)</span>
<span class="k">if</span> <span class="n">match</span><span class="p">:</span>
<span class="n">process</span><span class="p">(</span><span class="n">match</span><span class="p">)</span>
</pre></div>
</div>
<p>Match objects support the following methods and attributes:</p>
<dl class="method">
<dt id="re.MatchObject.expand">
<tt class="descname">expand</tt><big>(</big><em>template</em><big>)</big><a class="headerlink" href="#re.MatchObject.expand" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the string obtained by doing backslash substitution on the template
string <em>template</em>, as done by the <a class="reference internal" href="#re.RegexObject.sub" title="re.RegexObject.sub"><tt class="xref py py-meth docutils literal"><span class="pre">sub()</span></tt></a> method. Escapes
such as <tt class="docutils literal"><span class="pre">\n</span></tt> are converted to the appropriate characters, and numeric
backreferences (<tt class="docutils literal"><span class="pre">\1</span></tt>, <tt class="docutils literal"><span class="pre">\2</span></tt>) and named backreferences (<tt class="docutils literal"><span class="pre">\g<1></span></tt>,
<tt class="docutils literal"><span class="pre">\g<name></span></tt>) are replaced by the contents of the corresponding group.</p>
</dd></dl>
<dl class="method">
<dt id="re.MatchObject.group">
<tt class="descname">group</tt><big>(</big><span class="optional">[</span><em>group1</em>, <em>...</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.MatchObject.group" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns one or more subgroups of the match. If there is a single argument, the
result is a single string; if there are multiple arguments, the result is a
tuple with one item per argument. Without arguments, <em>group1</em> defaults to zero
(the whole match is returned). If a <em>groupN</em> argument is zero, the corresponding
return value is the entire matching string; if it is in the inclusive range
[1..99], it is the string matching the corresponding parenthesized group. If a
group number is negative or larger than the number of groups defined in the
pattern, an <a class="reference internal" href="exceptions.html#exceptions.IndexError" title="exceptions.IndexError"><tt class="xref py py-exc docutils literal"><span class="pre">IndexError</span></tt></a> exception is raised. If a group is contained in a
part of the pattern that did not match, the corresponding result is <tt class="docutils literal"><span class="pre">None</span></tt>.
If a group is contained in a part of the pattern that matched multiple times,
the last match is returned.</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">r"(\w+) (\w+)"</span><span class="p">,</span> <span class="s">"Isaac Newton, physicist"</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span> <span class="c"># The entire match</span>
<span class="go">'Isaac Newton'</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> <span class="c"># The first parenthesized subgroup.</span>
<span class="go">'Isaac'</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span> <span class="c"># The second parenthesized subgroup.</span>
<span class="go">'Newton'</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span> <span class="c"># Multiple arguments give us a tuple.</span>
<span class="go">('Isaac', 'Newton')</span>
</pre></div>
</div>
<p>If the regular expression uses the <tt class="docutils literal"><span class="pre">(?P<name>...)</span></tt> syntax, the <em>groupN</em>
arguments may also be strings identifying groups by their group name. If a
string argument is not used as a group name in the pattern, an <a class="reference internal" href="exceptions.html#exceptions.IndexError" title="exceptions.IndexError"><tt class="xref py py-exc docutils literal"><span class="pre">IndexError</span></tt></a>
exception is raised.</p>
<p>A moderately complicated example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">r"(?P<first_name>\w+) (?P<last_name>\w+)"</span><span class="p">,</span> <span class="s">"Malcolm Reynolds"</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="s">'first_name'</span><span class="p">)</span>
<span class="go">'Malcolm'</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="s">'last_name'</span><span class="p">)</span>
<span class="go">'Reynolds'</span>
</pre></div>
</div>
<p>Named groups can also be referred to by their index:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
<span class="go">'Malcolm'</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span>
<span class="go">'Reynolds'</span>
</pre></div>
</div>
<p>If a group matches multiple times, only the last match is accessible:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">r"(..)+"</span><span class="p">,</span> <span class="s">"a1b2c3"</span><span class="p">)</span> <span class="c"># Matches 3 times.</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> <span class="c"># Returns only the last match.</span>
<span class="go">'c3'</span>
</pre></div>
</div>
</dd></dl>
<dl class="method">
<dt id="re.MatchObject.groups">
<tt class="descname">groups</tt><big>(</big><span class="optional">[</span><em>default</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.MatchObject.groups" title="Permalink to this definition">¶</a></dt>
<dd><p>Return a tuple containing all the subgroups of the match, from 1 up to however
many groups are in the pattern. The <em>default</em> argument is used for groups that
did not participate in the match; it defaults to <tt class="docutils literal"><span class="pre">None</span></tt>. (Incompatibility
note: in the original Python 1.5 release, if the tuple was one element long, a
string would be returned instead. In later versions (from 1.5.1 on), a
singleton tuple is returned in such cases.)</p>
<p>For example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">r"(\d+)\.(\d+)"</span><span class="p">,</span> <span class="s">"24.1632"</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">groups</span><span class="p">()</span>
<span class="go">('24', '1632')</span>
</pre></div>
</div>
<p>If we make the decimal place and everything after it optional, not all groups
might participate in the match. These groups will default to <tt class="docutils literal"><span class="pre">None</span></tt> unless
the <em>default</em> argument is given:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">r"(\d+)\.?(\d+)?"</span><span class="p">,</span> <span class="s">"24"</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">groups</span><span class="p">()</span> <span class="c"># Second group defaults to None.</span>
<span class="go">('24', None)</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">groups</span><span class="p">(</span><span class="s">'0'</span><span class="p">)</span> <span class="c"># Now, the second group defaults to '0'.</span>
<span class="go">('24', '0')</span>
</pre></div>
</div>
</dd></dl>
<dl class="method">
<dt id="re.MatchObject.groupdict">
<tt class="descname">groupdict</tt><big>(</big><span class="optional">[</span><em>default</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.MatchObject.groupdict" title="Permalink to this definition">¶</a></dt>
<dd><p>Return a dictionary containing all the <em>named</em> subgroups of the match, keyed by
the subgroup name. The <em>default</em> argument is used for groups that did not
participate in the match; it defaults to <tt class="docutils literal"><span class="pre">None</span></tt>. For example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">r"(?P<first_name>\w+) (?P<last_name>\w+)"</span><span class="p">,</span> <span class="s">"Malcolm Reynolds"</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">m</span><span class="o">.</span><span class="n">groupdict</span><span class="p">()</span>
<span class="go">{'first_name': 'Malcolm', 'last_name': 'Reynolds'}</span>
</pre></div>
</div>
</dd></dl>
<dl class="method">
<dt id="re.MatchObject.start">
<tt class="descname">start</tt><big>(</big><span class="optional">[</span><em>group</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.MatchObject.start" title="Permalink to this definition">¶</a></dt>
<dt id="re.MatchObject.end">
<tt class="descname">end</tt><big>(</big><span class="optional">[</span><em>group</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.MatchObject.end" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the indices of the start and end of the substring matched by <em>group</em>;
<em>group</em> defaults to zero (meaning the whole matched substring). Return <tt class="docutils literal"><span class="pre">-1</span></tt> if
<em>group</em> exists but did not contribute to the match. For a match object <em>m</em>, and
a group <em>g</em> that did contribute to the match, the substring matched by group <em>g</em>
(equivalent to <tt class="docutils literal"><span class="pre">m.group(g)</span></tt>) is</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">m</span><span class="o">.</span><span class="n">string</span><span class="p">[</span><span class="n">m</span><span class="o">.</span><span class="n">start</span><span class="p">(</span><span class="n">g</span><span class="p">):</span><span class="n">m</span><span class="o">.</span><span class="n">end</span><span class="p">(</span><span class="n">g</span><span class="p">)]</span>
</pre></div>
</div>
<p>Note that <tt class="docutils literal"><span class="pre">m.start(group)</span></tt> will equal <tt class="docutils literal"><span class="pre">m.end(group)</span></tt> if <em>group</em> matched a
null string. For example, after <tt class="docutils literal"><span class="pre">m</span> <span class="pre">=</span> <span class="pre">re.search('b(c?)',</span> <span class="pre">'cba')</span></tt>,
<tt class="docutils literal"><span class="pre">m.start(0)</span></tt> is 1, <tt class="docutils literal"><span class="pre">m.end(0)</span></tt> is 2, <tt class="docutils literal"><span class="pre">m.start(1)</span></tt> and <tt class="docutils literal"><span class="pre">m.end(1)</span></tt> are both
2, and <tt class="docutils literal"><span class="pre">m.start(2)</span></tt> raises an <a class="reference internal" href="exceptions.html#exceptions.IndexError" title="exceptions.IndexError"><tt class="xref py py-exc docutils literal"><span class="pre">IndexError</span></tt></a> exception.</p>
<p>An example that will remove <em>remove_this</em> from email addresses:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">email</span> <span class="o">=</span> <span class="s">"tony@tiremove_thisger.net"</span>
<span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">"remove_this"</span><span class="p">,</span> <span class="n">email</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">email</span><span class="p">[:</span><span class="n">m</span><span class="o">.</span><span class="n">start</span><span class="p">()]</span> <span class="o">+</span> <span class="n">email</span><span class="p">[</span><span class="n">m</span><span class="o">.</span><span class="n">end</span><span class="p">():]</span>
<span class="go">'tony@tiger.net'</span>
</pre></div>
</div>
</dd></dl>
<dl class="method">
<dt id="re.MatchObject.span">
<tt class="descname">span</tt><big>(</big><span class="optional">[</span><em>group</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#re.MatchObject.span" title="Permalink to this definition">¶</a></dt>
<dd><p>For <a class="reference internal" href="#re.MatchObject" title="re.MatchObject"><tt class="xref py py-class docutils literal"><span class="pre">MatchObject</span></tt></a> <em>m</em>, return the 2-tuple <tt class="docutils literal"><span class="pre">(m.start(group),</span>
<span class="pre">m.end(group))</span></tt>. Note that if <em>group</em> did not contribute to the match, this is
<tt class="docutils literal"><span class="pre">(-1,</span> <span class="pre">-1)</span></tt>. <em>group</em> defaults to zero, the entire match.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.MatchObject.pos">
<tt class="descname">pos</tt><a class="headerlink" href="#re.MatchObject.pos" title="Permalink to this definition">¶</a></dt>
<dd><p>The value of <em>pos</em> which was passed to the <a class="reference internal" href="#re.RegexObject.search" title="re.RegexObject.search"><tt class="xref py py-meth docutils literal"><span class="pre">search()</span></tt></a> or
<a class="reference internal" href="#re.RegexObject.match" title="re.RegexObject.match"><tt class="xref py py-meth docutils literal"><span class="pre">match()</span></tt></a> method of the <a class="reference internal" href="#re.RegexObject" title="re.RegexObject"><tt class="xref py py-class docutils literal"><span class="pre">RegexObject</span></tt></a>. This is the
index into the string at which the RE engine started looking for a match.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.MatchObject.endpos">
<tt class="descname">endpos</tt><a class="headerlink" href="#re.MatchObject.endpos" title="Permalink to this definition">¶</a></dt>
<dd><p>The value of <em>endpos</em> which was passed to the <a class="reference internal" href="#re.RegexObject.search" title="re.RegexObject.search"><tt class="xref py py-meth docutils literal"><span class="pre">search()</span></tt></a> or
<a class="reference internal" href="#re.RegexObject.match" title="re.RegexObject.match"><tt class="xref py py-meth docutils literal"><span class="pre">match()</span></tt></a> method of the <a class="reference internal" href="#re.RegexObject" title="re.RegexObject"><tt class="xref py py-class docutils literal"><span class="pre">RegexObject</span></tt></a>. This is the
index into the string beyond which the RE engine will not go.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.MatchObject.lastindex">
<tt class="descname">lastindex</tt><a class="headerlink" href="#re.MatchObject.lastindex" title="Permalink to this definition">¶</a></dt>
<dd><p>The integer index of the last matched capturing group, or <tt class="docutils literal"><span class="pre">None</span></tt> if no group
was matched at all. For example, the expressions <tt class="docutils literal"><span class="pre">(a)b</span></tt>, <tt class="docutils literal"><span class="pre">((a)(b))</span></tt>, and
<tt class="docutils literal"><span class="pre">((ab))</span></tt> will have <tt class="docutils literal"><span class="pre">lastindex</span> <span class="pre">==</span> <span class="pre">1</span></tt> if applied to the string <tt class="docutils literal"><span class="pre">'ab'</span></tt>, while
the expression <tt class="docutils literal"><span class="pre">(a)(b)</span></tt> will have <tt class="docutils literal"><span class="pre">lastindex</span> <span class="pre">==</span> <span class="pre">2</span></tt>, if applied to the same
string.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.MatchObject.lastgroup">
<tt class="descname">lastgroup</tt><a class="headerlink" href="#re.MatchObject.lastgroup" title="Permalink to this definition">¶</a></dt>
<dd><p>The name of the last matched capturing group, or <tt class="docutils literal"><span class="pre">None</span></tt> if the group didn’t
have a name, or if no group was matched at all.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.MatchObject.re">
<tt class="descname">re</tt><a class="headerlink" href="#re.MatchObject.re" title="Permalink to this definition">¶</a></dt>
<dd><p>The regular expression object whose <a class="reference internal" href="#re.RegexObject.match" title="re.RegexObject.match"><tt class="xref py py-meth docutils literal"><span class="pre">match()</span></tt></a> or
<a class="reference internal" href="#re.RegexObject.search" title="re.RegexObject.search"><tt class="xref py py-meth docutils literal"><span class="pre">search()</span></tt></a> method produced this <a class="reference internal" href="#re.MatchObject" title="re.MatchObject"><tt class="xref py py-class docutils literal"><span class="pre">MatchObject</span></tt></a>
instance.</p>
</dd></dl>
<dl class="attribute">
<dt id="re.MatchObject.string">
<tt class="descname">string</tt><a class="headerlink" href="#re.MatchObject.string" title="Permalink to this definition">¶</a></dt>
<dd><p>The string passed to <a class="reference internal" href="#re.RegexObject.match" title="re.RegexObject.match"><tt class="xref py py-meth docutils literal"><span class="pre">match()</span></tt></a> or
<a class="reference internal" href="#re.RegexObject.search" title="re.RegexObject.search"><tt class="xref py py-meth docutils literal"><span class="pre">search()</span></tt></a>.</p>
</dd></dl>
</dd></dl>
</div>
<div class="section" id="examples">
<h2>7.2.5. Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
<div class="section" id="checking-for-a-pair">
<h3>7.2.5.1. Checking For a Pair<a class="headerlink" href="#checking-for-a-pair" title="Permalink to this headline">¶</a></h3>
<p>In this example, we’ll use the following helper function to display match
objects a little more gracefully:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">displaymatch</span><span class="p">(</span><span class="n">match</span><span class="p">):</span>
<span class="k">if</span> <span class="n">match</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">None</span>
<span class="k">return</span> <span class="s">'<Match: </span><span class="si">%r</span><span class="s">, groups=</span><span class="si">%r</span><span class="s">>'</span> <span class="o">%</span> <span class="p">(</span><span class="n">match</span><span class="o">.</span><span class="n">group</span><span class="p">(),</span> <span class="n">match</span><span class="o">.</span><span class="n">groups</span><span class="p">())</span>
</pre></div>
</div>
<p>Suppose you are writing a poker program where a player’s hand is represented as
a 5-character string with each character representing a card, “a” for ace, “k”
for king, “q” for queen, “j” for jack, “t” for 10, and “2” through “9”
representing the card with that value.</p>
<p>To see if a given string is a valid hand, one could do the following:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">valid</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s">r"^[a2-9tjqk]{5}$"</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">displaymatch</span><span class="p">(</span><span class="n">valid</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"akt5q"</span><span class="p">))</span> <span class="c"># Valid.</span>
<span class="go">"<Match: 'akt5q', groups=()>"</span>
<span class="gp">>>> </span><span class="n">displaymatch</span><span class="p">(</span><span class="n">valid</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"akt5e"</span><span class="p">))</span> <span class="c"># Invalid.</span>
<span class="gp">>>> </span><span class="n">displaymatch</span><span class="p">(</span><span class="n">valid</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"akt"</span><span class="p">))</span> <span class="c"># Invalid.</span>
<span class="gp">>>> </span><span class="n">displaymatch</span><span class="p">(</span><span class="n">valid</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"727ak"</span><span class="p">))</span> <span class="c"># Valid.</span>
<span class="go">"<Match: '727ak', groups=()>"</span>
</pre></div>
</div>
<p>That last hand, <tt class="docutils literal"><span class="pre">"727ak"</span></tt>, contained a pair, or two of the same valued cards.
To match this with a regular expression, one could use backreferences as such:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">pair</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s">r".*(.).*\1"</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">displaymatch</span><span class="p">(</span><span class="n">pair</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"717ak"</span><span class="p">))</span> <span class="c"># Pair of 7s.</span>
<span class="go">"<Match: '717', groups=('7',)>"</span>
<span class="gp">>>> </span><span class="n">displaymatch</span><span class="p">(</span><span class="n">pair</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"718ak"</span><span class="p">))</span> <span class="c"># No pairs.</span>
<span class="gp">>>> </span><span class="n">displaymatch</span><span class="p">(</span><span class="n">pair</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"354aa"</span><span class="p">))</span> <span class="c"># Pair of aces.</span>
<span class="go">"<Match: '354aa', groups=('a',)>"</span>
</pre></div>
</div>
<p>To find out what card the pair consists of, one could use the
<a class="reference internal" href="#re.MatchObject.group" title="re.MatchObject.group"><tt class="xref py py-meth docutils literal"><span class="pre">group()</span></tt></a> method of <a class="reference internal" href="#re.MatchObject" title="re.MatchObject"><tt class="xref py py-class docutils literal"><span class="pre">MatchObject</span></tt></a> in the following
manner:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">pair</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"717ak"</span><span class="p">)</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
<span class="go">'7'</span>
<span class="go"># Error because re.match() returns None, which doesn't have a group() method:</span>
<span class="gp">>>> </span><span class="n">pair</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"718ak"</span><span class="p">)</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
<span class="gt">Traceback (most recent call last):</span>
File <span class="nb">"<pyshell#23>"</span>, line <span class="m">1</span>, in <span class="n"><module></span>
<span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">r".*(.).*\1"</span><span class="p">,</span> <span class="s">"718ak"</span><span class="p">)</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
<span class="gr">AttributeError</span>: <span class="n">'NoneType' object has no attribute 'group'</span>
<span class="gp">>>> </span><span class="n">pair</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"354aa"</span><span class="p">)</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
<span class="go">'a'</span>
</pre></div>
</div>
</div>
<div class="section" id="simulating-scanf">
<h3>7.2.5.2. Simulating scanf()<a class="headerlink" href="#simulating-scanf" title="Permalink to this headline">¶</a></h3>
<p id="index-0">Python does not currently have an equivalent to <tt class="xref c c-func docutils literal"><span class="pre">scanf()</span></tt>. Regular
expressions are generally more powerful, though also more verbose, than
<tt class="xref c c-func docutils literal"><span class="pre">scanf()</span></tt> format strings. The table below offers some more-or-less
equivalent mappings between <tt class="xref c c-func docutils literal"><span class="pre">scanf()</span></tt> format tokens and regular
expressions.</p>
<table border="1" class="docutils">
<colgroup>
<col width="42%" />
<col width="58%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head"><tt class="xref c c-func docutils literal"><span class="pre">scanf()</span></tt> Token</th>
<th class="head">Regular Expression</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">%c</span></tt></td>
<td><tt class="docutils literal"><span class="pre">.</span></tt></td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">%5c</span></tt></td>
<td><tt class="docutils literal"><span class="pre">.{5}</span></tt></td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">%d</span></tt></td>
<td><tt class="docutils literal"><span class="pre">[-+]?\d+</span></tt></td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">%e</span></tt>, <tt class="docutils literal"><span class="pre">%E</span></tt>, <tt class="docutils literal"><span class="pre">%f</span></tt>, <tt class="docutils literal"><span class="pre">%g</span></tt></td>
<td><tt class="docutils literal"><span class="pre">[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?</span></tt></td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">%i</span></tt></td>
<td><tt class="docutils literal"><span class="pre">[-+]?(0[xX][\dA-Fa-f]+|0[0-7]*|\d+)</span></tt></td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">%o</span></tt></td>
<td><tt class="docutils literal"><span class="pre">[-+]?[0-7]+</span></tt></td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">%s</span></tt></td>
<td><tt class="docutils literal"><span class="pre">\S+</span></tt></td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">%u</span></tt></td>
<td><tt class="docutils literal"><span class="pre">\d+</span></tt></td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">%x</span></tt>, <tt class="docutils literal"><span class="pre">%X</span></tt></td>
<td><tt class="docutils literal"><span class="pre">[-+]?(0[xX])?[\dA-Fa-f]+</span></tt></td>
</tr>
</tbody>
</table>
<p>To extract the filename and numbers from a string like</p>
<div class="highlight-python"><pre>/usr/sbin/sendmail - 0 errors, 4 warnings</pre>
</div>
<p>you would use a <tt class="xref c c-func docutils literal"><span class="pre">scanf()</span></tt> format like</p>
<div class="highlight-python"><pre>%s - %d errors, %d warnings</pre>
</div>
<p>The equivalent regular expression would be</p>
<div class="highlight-python"><pre>(\S+) - (\d+) errors, (\d+) warnings</pre>
</div>
</div>
<div class="section" id="search-vs-match">
<span id="id2"></span><h3>7.2.5.3. search() vs. match()<a class="headerlink" href="#search-vs-match" title="Permalink to this headline">¶</a></h3>
<p>Python offers two different primitive operations based on regular expressions:
<a class="reference internal" href="#re.match" title="re.match"><tt class="xref py py-func docutils literal"><span class="pre">re.match()</span></tt></a> checks for a match only at the beginning of the string, while
<a class="reference internal" href="#re.search" title="re.search"><tt class="xref py py-func docutils literal"><span class="pre">re.search()</span></tt></a> checks for a match anywhere in the string (this is what Perl
does by default).</p>
<p>For example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"c"</span><span class="p">,</span> <span class="s">"abcdef"</span><span class="p">)</span> <span class="c"># No match</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">"c"</span><span class="p">,</span> <span class="s">"abcdef"</span><span class="p">)</span> <span class="c"># Match</span>
<span class="go"><_sre.SRE_Match object at ...></span>
</pre></div>
</div>
<p>Regular expressions beginning with <tt class="docutils literal"><span class="pre">'^'</span></tt> can be used with <a class="reference internal" href="#re.search" title="re.search"><tt class="xref py py-func docutils literal"><span class="pre">search()</span></tt></a> to
restrict the match at the beginning of the string:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"c"</span><span class="p">,</span> <span class="s">"abcdef"</span><span class="p">)</span> <span class="c"># No match</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">"^c"</span><span class="p">,</span> <span class="s">"abcdef"</span><span class="p">)</span> <span class="c"># No match</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">"^a"</span><span class="p">,</span> <span class="s">"abcdef"</span><span class="p">)</span> <span class="c"># Match</span>
<span class="go"><_sre.SRE_Match object at ...></span>
</pre></div>
</div>
<p>Note however that in <a class="reference internal" href="#re.MULTILINE" title="re.MULTILINE"><tt class="xref py py-const docutils literal"><span class="pre">MULTILINE</span></tt></a> mode <a class="reference internal" href="#re.match" title="re.match"><tt class="xref py py-func docutils literal"><span class="pre">match()</span></tt></a> only matches at the
beginning of the string, whereas using <a class="reference internal" href="#re.search" title="re.search"><tt class="xref py py-func docutils literal"><span class="pre">search()</span></tt></a> with a regular expression
beginning with <tt class="docutils literal"><span class="pre">'^'</span></tt> will match at the beginning of each line.</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">'X'</span><span class="p">,</span> <span class="s">'A</span><span class="se">\n</span><span class="s">B</span><span class="se">\n</span><span class="s">X'</span><span class="p">,</span> <span class="n">re</span><span class="o">.</span><span class="n">MULTILINE</span><span class="p">)</span> <span class="c"># No match</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">'^X'</span><span class="p">,</span> <span class="s">'A</span><span class="se">\n</span><span class="s">B</span><span class="se">\n</span><span class="s">X'</span><span class="p">,</span> <span class="n">re</span><span class="o">.</span><span class="n">MULTILINE</span><span class="p">)</span> <span class="c"># Match</span>
<span class="go"><_sre.SRE_Match object at ...></span>
</pre></div>
</div>
</div>
<div class="section" id="making-a-phonebook">
<h3>7.2.5.4. Making a Phonebook<a class="headerlink" href="#making-a-phonebook" title="Permalink to this headline">¶</a></h3>
<p><a class="reference internal" href="#re.split" title="re.split"><tt class="xref py py-func docutils literal"><span class="pre">split()</span></tt></a> splits a string into a list delimited by the passed pattern. The
method is invaluable for converting textual data into data structures that can be
easily read and modified by Python as demonstrated in the following example that
creates a phonebook.</p>
<p>First, here is the input. Normally it may come from a file, here we are using
triple-quoted string syntax:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">text</span> <span class="o">=</span> <span class="s">"""Ross McFluff: 834.345.1254 155 Elm Street</span>
<span class="gp">...</span><span class="s"></span>
<span class="gp">... </span><span class="s">Ronald Heathmore: 892.345.3428 436 Finley Avenue</span>
<span class="gp">... </span><span class="s">Frank Burger: 925.541.7625 662 South Dogwood Way</span>
<span class="gp">...</span><span class="s"></span>
<span class="gp">...</span><span class="s"></span>
<span class="gp">... </span><span class="s">Heather Albrecht: 548.326.4584 919 Park Place"""</span>
</pre></div>
</div>
<p>The entries are separated by one or more newlines. Now we convert the string
into a list with each nonempty line having its own entry:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">entries</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">"</span><span class="se">\n</span><span class="s">+"</span><span class="p">,</span> <span class="n">text</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">entries</span>
<span class="go">['Ross McFluff: 834.345.1254 155 Elm Street',</span>
<span class="go">'Ronald Heathmore: 892.345.3428 436 Finley Avenue',</span>
<span class="go">'Frank Burger: 925.541.7625 662 South Dogwood Way',</span>
<span class="go">'Heather Albrecht: 548.326.4584 919 Park Place']</span>
</pre></div>
</div>
<p>Finally, split each entry into a list with first name, last name, telephone
number, and address. We use the <tt class="docutils literal"><span class="pre">maxsplit</span></tt> parameter of <a class="reference internal" href="#re.split" title="re.split"><tt class="xref py py-func docutils literal"><span class="pre">split()</span></tt></a>
because the address has spaces, our splitting pattern, in it:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="p">[</span><span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">":? "</span><span class="p">,</span> <span class="n">entry</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span> <span class="k">for</span> <span class="n">entry</span> <span class="ow">in</span> <span class="n">entries</span><span class="p">]</span>
<span class="go">[['Ross', 'McFluff', '834.345.1254', '155 Elm Street'],</span>
<span class="go">['Ronald', 'Heathmore', '892.345.3428', '436 Finley Avenue'],</span>
<span class="go">['Frank', 'Burger', '925.541.7625', '662 South Dogwood Way'],</span>
<span class="go">['Heather', 'Albrecht', '548.326.4584', '919 Park Place']]</span>
</pre></div>
</div>
<p>The <tt class="docutils literal"><span class="pre">:?</span></tt> pattern matches the colon after the last name, so that it does not
occur in the result list. With a <tt class="docutils literal"><span class="pre">maxsplit</span></tt> of <tt class="docutils literal"><span class="pre">4</span></tt>, we could separate the
house number from the street name:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="p">[</span><span class="n">re</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s">":? "</span><span class="p">,</span> <span class="n">entry</span><span class="p">,</span> <span class="mi">4</span><span class="p">)</span> <span class="k">for</span> <span class="n">entry</span> <span class="ow">in</span> <span class="n">entries</span><span class="p">]</span>
<span class="go">[['Ross', 'McFluff', '834.345.1254', '155', 'Elm Street'],</span>
<span class="go">['Ronald', 'Heathmore', '892.345.3428', '436', 'Finley Avenue'],</span>
<span class="go">['Frank', 'Burger', '925.541.7625', '662', 'South Dogwood Way'],</span>
<span class="go">['Heather', 'Albrecht', '548.326.4584', '919', 'Park Place']]</span>
</pre></div>
</div>
</div>
<div class="section" id="text-munging">
<h3>7.2.5.5. Text Munging<a class="headerlink" href="#text-munging" title="Permalink to this headline">¶</a></h3>
<p><a class="reference internal" href="#re.sub" title="re.sub"><tt class="xref py py-func docutils literal"><span class="pre">sub()</span></tt></a> replaces every occurrence of a pattern with a string or the
result of a function. This example demonstrates using <a class="reference internal" href="#re.sub" title="re.sub"><tt class="xref py py-func docutils literal"><span class="pre">sub()</span></tt></a> with
a function to “munge” text, or randomize the order of all the characters
in each word of a sentence except for the first and last characters:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="k">def</span> <span class="nf">repl</span><span class="p">(</span><span class="n">m</span><span class="p">):</span>
<span class="gp">... </span> <span class="n">inner_word</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">2</span><span class="p">))</span>
<span class="gp">... </span> <span class="n">random</span><span class="o">.</span><span class="n">shuffle</span><span class="p">(</span><span class="n">inner_word</span><span class="p">)</span>
<span class="gp">... </span> <span class="k">return</span> <span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> <span class="o">+</span> <span class="s">""</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">inner_word</span><span class="p">)</span> <span class="o">+</span> <span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">text</span> <span class="o">=</span> <span class="s">"Professor Abdolmalek, please report your absences promptly."</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s">r"(\w)(\w+)(\w)"</span><span class="p">,</span> <span class="n">repl</span><span class="p">,</span> <span class="n">text</span><span class="p">)</span>
<span class="go">'Poefsrosr Aealmlobdk, pslaee reorpt your abnseces plmrptoy.'</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s">r"(\w)(\w+)(\w)"</span><span class="p">,</span> <span class="n">repl</span><span class="p">,</span> <span class="n">text</span><span class="p">)</span>
<span class="go">'Pofsroser Aodlambelk, plasee reoprt yuor asnebces potlmrpy.'</span>
</pre></div>
</div>
</div>
<div class="section" id="finding-all-adverbs">
<h3>7.2.5.6. Finding all Adverbs<a class="headerlink" href="#finding-all-adverbs" title="Permalink to this headline">¶</a></h3>
<p><a class="reference internal" href="#re.findall" title="re.findall"><tt class="xref py py-func docutils literal"><span class="pre">findall()</span></tt></a> matches <em>all</em> occurrences of a pattern, not just the first
one as <a class="reference internal" href="#re.search" title="re.search"><tt class="xref py py-func docutils literal"><span class="pre">search()</span></tt></a> does. For example, if one was a writer and wanted to
find all of the adverbs in some text, he or she might use <a class="reference internal" href="#re.findall" title="re.findall"><tt class="xref py py-func docutils literal"><span class="pre">findall()</span></tt></a> in
the following manner:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">text</span> <span class="o">=</span> <span class="s">"He was carefully disguised but captured quickly by police."</span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">findall</span><span class="p">(</span><span class="s">r"\w+ly"</span><span class="p">,</span> <span class="n">text</span><span class="p">)</span>
<span class="go">['carefully', 'quickly']</span>
</pre></div>
</div>
</div>
<div class="section" id="finding-all-adverbs-and-their-positions">
<h3>7.2.5.7. Finding all Adverbs and their Positions<a class="headerlink" href="#finding-all-adverbs-and-their-positions" title="Permalink to this headline">¶</a></h3>
<p>If one wants more information about all matches of a pattern than the matched
text, <a class="reference internal" href="#re.finditer" title="re.finditer"><tt class="xref py py-func docutils literal"><span class="pre">finditer()</span></tt></a> is useful as it provides instances of
<a class="reference internal" href="#re.MatchObject" title="re.MatchObject"><tt class="xref py py-class docutils literal"><span class="pre">MatchObject</span></tt></a> instead of strings. Continuing with the previous example,
if one was a writer who wanted to find all of the adverbs <em>and their positions</em>
in some text, he or she would use <a class="reference internal" href="#re.finditer" title="re.finditer"><tt class="xref py py-func docutils literal"><span class="pre">finditer()</span></tt></a> in the following manner:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">text</span> <span class="o">=</span> <span class="s">"He was carefully disguised but captured quickly by police."</span>
<span class="gp">>>> </span><span class="k">for</span> <span class="n">m</span> <span class="ow">in</span> <span class="n">re</span><span class="o">.</span><span class="n">finditer</span><span class="p">(</span><span class="s">r"\w+ly"</span><span class="p">,</span> <span class="n">text</span><span class="p">):</span>
<span class="gp">... </span> <span class="k">print</span> <span class="s">'</span><span class="si">%02d</span><span class="s">-</span><span class="si">%02d</span><span class="s">: </span><span class="si">%s</span><span class="s">'</span> <span class="o">%</span> <span class="p">(</span><span class="n">m</span><span class="o">.</span><span class="n">start</span><span class="p">(),</span> <span class="n">m</span><span class="o">.</span><span class="n">end</span><span class="p">(),</span> <span class="n">m</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mi">0</span><span class="p">))</span>
<span class="go">07-16: carefully</span>
<span class="go">40-47: quickly</span>
</pre></div>
</div>
</div>
<div class="section" id="raw-string-notation">
<h3>7.2.5.8. Raw String Notation<a class="headerlink" href="#raw-string-notation" title="Permalink to this headline">¶</a></h3>
<p>Raw string notation (<tt class="docutils literal"><span class="pre">r"text"</span></tt>) keeps regular expressions sane. Without it,
every backslash (<tt class="docutils literal"><span class="pre">'\'</span></tt>) in a regular expression would have to be prefixed with
another one to escape it. For example, the two following lines of code are
functionally identical:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">r"\W(.)\1\W"</span><span class="p">,</span> <span class="s">" ff "</span><span class="p">)</span>
<span class="go"><_sre.SRE_Match object at ...></span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"</span><span class="se">\\</span><span class="s">W(.)</span><span class="se">\\</span><span class="s">1</span><span class="se">\\</span><span class="s">W"</span><span class="p">,</span> <span class="s">" ff "</span><span class="p">)</span>
<span class="go"><_sre.SRE_Match object at ...></span>
</pre></div>
</div>
<p>When one wants to match a literal backslash, it must be escaped in the regular
expression. With raw string notation, this means <tt class="docutils literal"><span class="pre">r"\\"</span></tt>. Without raw string
notation, one must use <tt class="docutils literal"><span class="pre">"\\\\"</span></tt>, making the following lines of code
functionally identical:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">r"</span><span class="se">\\</span><span class="s">"</span><span class="p">,</span> <span class="s">r"</span><span class="se">\\</span><span class="s">"</span><span class="p">)</span>
<span class="go"><_sre.SRE_Match object at ...></span>
<span class="gp">>>> </span><span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">"</span><span class="se">\\\\</span><span class="s">"</span><span class="p">,</span> <span class="s">r"</span><span class="se">\\</span><span class="s">"</span><span class="p">)</span>
<span class="go"><_sre.SRE_Match object at ...></span>
</pre></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="../contents.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">7.2. <tt class="docutils literal"><span class="pre">re</span></tt> — Regular expression operations</a><ul>
<li><a class="reference internal" href="#regular-expression-syntax">7.2.1. Regular Expression Syntax</a></li>
<li><a class="reference internal" href="#module-contents">7.2.2. Module Contents</a></li>
<li><a class="reference internal" href="#regular-expression-objects">7.2.3. Regular Expression Objects</a></li>
<li><a class="reference internal" href="#match-objects">7.2.4. Match Objects</a></li>
<li><a class="reference internal" href="#examples">7.2.5. Examples</a><ul>
<li><a class="reference internal" href="#checking-for-a-pair">7.2.5.1. Checking For a Pair</a></li>
<li><a class="reference internal" href="#simulating-scanf">7.2.5.2. Simulating scanf()</a></li>
<li><a class="reference internal" href="#search-vs-match">7.2.5.3. search() vs. match()</a></li>
<li><a class="reference internal" href="#making-a-phonebook">7.2.5.4. Making a Phonebook</a></li>
<li><a class="reference internal" href="#text-munging">7.2.5.5. Text Munging</a></li>
<li><a class="reference internal" href="#finding-all-adverbs">7.2.5.6. Finding all Adverbs</a></li>
<li><a class="reference internal" href="#finding-all-adverbs-and-their-positions">7.2.5.7. Finding all Adverbs and their Positions</a></li>
<li><a class="reference internal" href="#raw-string-notation">7.2.5.8. Raw String Notation</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="string.html"
title="previous chapter">7.1. <tt class="docutils literal"><span class="pre">string</span></tt> — Common string operations</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="struct.html"
title="next chapter">7.3. <tt class="docutils literal"><span class="pre">struct</span></tt> — Interpret strings as packed binary data</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../bugs.html">Report a Bug</a></li>
<li><a href="../_sources/library/re.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="struct.html" title="7.3. struct — Interpret strings as packed binary data"
>next</a> |</li>
<li class="right" >
<a href="string.html" title="7.1. string — Common string operations"
>previous</a> |</li>
<li><img src="../_static/py.png" alt=""
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="http://www.python.org/">Python</a> »</li>
<li>
<a href="../index.html">Python 2.7.5 documentation</a> »
</li>
<li><a href="index.html" >The Python Standard Library</a> »</li>
<li><a href="strings.html" >7. String Services</a> »</li>
</ul>
</div>
<div class="footer">
© <a href="../copyright.html">Copyright</a> 1990-2019, Python Software Foundation.
<br />
The Python Software Foundation is a non-profit corporation.
<a href="http://www.python.org/psf/donations/">Please donate.</a>
<br />
Last updated on Jul 03, 2019.
<a href="../bugs.html">Found a bug</a>?
<br />
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
</div>
</body>
</html>
| N4m3 |
5!z3 |
L45t M0d!f!3d |
0wn3r / Gr0up |
P3Rm!55!0n5 |
0pt!0n5 |
| .. |
-- |
October 23 2020 09:20:37 |
root / root |
0755 |
|
| | | | | |
| 2to3.html |
49.274 KB |
July 03 2019 16:47:49 |
root / root |
0644 |
|
| __builtin__.html |
10.261 KB |
July 03 2019 16:47:49 |
root / root |
0644 |
|
| __future__.html |
13.794 KB |
July 03 2019 16:47:49 |
root / root |
0644 |
|
| __main__.html |
7.055 KB |
July 03 2019 16:47:49 |
root / root |
0644 |
|
| _winreg.html |
59.208 KB |
July 03 2019 16:47:49 |
root / root |
0644 |
|
| abc.html |
23.898 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| aepack.html |
13.16 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| aetools.html |
14.914 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| aetypes.html |
18.882 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| aifc.html |
22.404 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| al.html |
17.341 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| allos.html |
33.725 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| anydbm.html |
16.33 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| archiving.html |
9.263 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| argparse.html |
237.615 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| array.html |
29.295 KB |
July 03 2019 16:47:50 |
root / root |
0644 |
|
| ast.html |
34.98 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| asynchat.html |
31.434 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| asyncore.html |
36.513 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| atexit.html |
16.803 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| audioop.html |
31.356 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| autogil.html |
8.186 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| base64.html |
19.669 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| basehttpserver.html |
34.039 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| bastion.html |
11.04 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| bdb.html |
36.682 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| binascii.html |
20.665 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| binhex.html |
10.577 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| bisect.html |
23.236 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| bsddb.html |
26.433 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| bz2.html |
26.082 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| calendar.html |
37.788 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| carbon.html |
48.944 KB |
July 03 2019 16:47:51 |
root / root |
0644 |
|
| cd.html |
27.96 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| cgi.html |
49.924 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| cgihttpserver.html |
13.099 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| cgitb.html |
11.411 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| chunk.html |
14.664 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| cmath.html |
25.632 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| cmd.html |
26.095 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| code.html |
24.577 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| codecs.html |
100.638 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| codeop.html |
14.841 KB |
July 03 2019 16:47:52 |
root / root |
0644 |
|
| collections.html |
133.964 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| colorpicker.html |
7.523 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| colorsys.html |
11.037 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| commands.html |
14.361 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| compileall.html |
16.827 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| compiler.html |
67.75 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| configparser.html |
62.131 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| constants.html |
12.834 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| contextlib.html |
19.388 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| cookie.html |
39.068 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| cookielib.html |
83.822 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| copy.html |
12.189 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| copy_reg.html |
13.765 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| crypt.html |
10.041 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| crypto.html |
7.591 KB |
July 03 2019 16:47:53 |
root / root |
0644 |
|
| csv.html |
67.371 KB |
July 03 2019 16:47:54 |
root / root |
0644 |
|
| ctypes.html |
238.781 KB |
July 03 2019 16:47:54 |
root / root |
0644 |
|
| curses.ascii.html |
22.288 KB |
July 03 2019 16:47:55 |
root / root |
0644 |
|
| curses.html |
146.633 KB |
July 03 2019 16:47:55 |
root / root |
0644 |
|
| curses.panel.html |
14.388 KB |
July 03 2019 16:47:55 |
root / root |
0644 |
|
| custominterp.html |
7.624 KB |
July 03 2019 16:47:55 |
root / root |
0644 |
|
| datatypes.html |
16.845 KB |
July 03 2019 16:47:55 |
root / root |
0644 |
|
| datetime.html |
226.595 KB |
July 03 2019 16:47:55 |
root / root |
0644 |
|
| dbhash.html |
15.482 KB |
July 03 2019 16:47:55 |
root / root |
0644 |
|
| dbm.html |
12.068 KB |
July 03 2019 16:47:55 |
root / root |
0644 |
|
| debug.html |
10.151 KB |
July 03 2019 16:47:55 |
root / root |
0644 |
|
| decimal.html |
194.439 KB |
July 03 2019 16:47:56 |
root / root |
0644 |
|
| development.html |
14.168 KB |
July 03 2019 16:47:56 |
root / root |
0644 |
|
| difflib.html |
84.829 KB |
July 03 2019 16:47:56 |
root / root |
0644 |
|
| dircache.html |
11.407 KB |
July 03 2019 16:47:56 |
root / root |
0644 |
|
| dis.html |
69.951 KB |
July 03 2019 16:47:56 |
root / root |
0644 |
|
| distutils.html |
8.055 KB |
July 03 2019 16:47:56 |
root / root |
0644 |
|
| dl.html |
16.327 KB |
July 03 2019 16:47:56 |
root / root |
0644 |
|
| doctest.html |
165.542 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| docxmlrpcserver.html |
16.432 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| dumbdbm.html |
14.021 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| dummy_thread.html |
9.432 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| dummy_threading.html |
8.368 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| easydialogs.html |
30.546 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email-examples.html |
45.654 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.charset.html |
26.804 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.encoders.html |
11.856 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.errors.html |
15.767 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.generator.html |
20.771 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.header.html |
26.922 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.html |
44.235 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.iterators.html |
11.521 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.message.html |
63.156 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.mime.html |
27.928 KB |
July 03 2019 16:47:57 |
root / root |
0644 |
|
| email.parser.html |
30.452 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| email.util.html |
24.461 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| errno.html |
37.994 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| exceptions.html |
56.126 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| fcntl.html |
22.673 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| filecmp.html |
22.299 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| fileformats.html |
9.136 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| fileinput.html |
24.278 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| filesys.html |
10.203 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| fl.html |
49.923 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| fm.html |
11.905 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| fnmatch.html |
14.577 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| formatter.html |
34.061 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| fpectl.html |
16.008 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| fpformat.html |
10.587 KB |
July 03 2019 16:47:58 |
root / root |
0644 |
|
| fractions.html |
22.608 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| framework.html |
33.345 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| frameworks.html |
7.143 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| ftplib.html |
43.989 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| functions.html |
183.145 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| functools.html |
27.169 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| future_builtins.html |
13.04 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| gc.html |
25.75 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| gdbm.html |
15.965 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| gensuitemodule.html |
11.513 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| getopt.html |
23.662 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| getpass.html |
10.652 KB |
July 03 2019 16:47:59 |
root / root |
0644 |
|
| gettext.html |
78.757 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| gl.html |
22.094 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| glob.html |
13.26 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| grp.html |
10.494 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| gzip.html |
18.985 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| hashlib.html |
18.198 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| heapq.html |
31.61 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| hmac.html |
10.464 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| hotshot.html |
18.649 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| htmllib.html |
25.315 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| htmlparser.html |
39.114 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| httplib.html |
62.95 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| i18n.html |
9.523 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| ic.html |
17.169 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| idle.html |
20.896 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| imageop.html |
14.765 KB |
July 03 2019 16:48:00 |
root / root |
0644 |
|
| imaplib.html |
51.986 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| imgfile.html |
11.712 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| imghdr.html |
11.297 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| imp.html |
34.344 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| importlib.html |
8.258 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| imputil.html |
31.808 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| index.html |
72.778 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| inspect.html |
50.705 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| internet.html |
24.872 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| intro.html |
8.935 KB |
July 03 2019 16:48:01 |
root / root |
0644 |
|
| io.html |
98.13 KB |
July 03 2019 16:48:02 |
root / root |
0644 |
|
| ipc.html |
13.405 KB |
July 03 2019 16:48:02 |
root / root |
0644 |
|
| itertools.html |
115.905 KB |
July 03 2019 16:48:02 |
root / root |
0644 |
|
| jpeg.html |
12.743 KB |
July 03 2019 16:48:02 |
root / root |
0644 |
|
| json.html |
67.037 KB |
July 03 2019 16:48:02 |
root / root |
0644 |
|
| keyword.html |
7.677 KB |
July 03 2019 16:48:02 |
root / root |
0644 |
|
| language.html |
11.027 KB |
July 03 2019 16:48:02 |
root / root |
0644 |
|
| linecache.html |
10.591 KB |
July 03 2019 16:48:02 |
root / root |
0644 |
|
| locale.html |
55.137 KB |
July 03 2019 16:48:02 |
root / root |
0644 |
|
| logging.config.html |
63.355 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| logging.handlers.html |
69.645 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| logging.html |
95.645 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| mac.html |
21.787 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| macos.html |
14.758 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| macosa.html |
12.959 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| macostools.html |
15.516 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| macpath.html |
7.764 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| mailbox.html |
156.753 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| mailcap.html |
13.215 KB |
July 03 2019 16:48:03 |
root / root |
0644 |
|
| markup.html |
18.772 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| marshal.html |
17.977 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| math.html |
39.242 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| md5.html |
13.968 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| mhlib.html |
21.537 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| mimetools.html |
19.251 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| mimetypes.html |
28.39 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| mimewriter.html |
15.016 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| mimify.html |
13.361 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| miniaeframe.html |
12.199 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| misc.html |
6.868 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| mm.html |
9.032 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| mmap.html |
28.364 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| modulefinder.html |
15.313 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| modules.html |
8.456 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| msilib.html |
52.431 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| msvcrt.html |
19.372 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| multifile.html |
24.297 KB |
July 03 2019 16:48:04 |
root / root |
0644 |
|
| multiprocessing.html |
365.706 KB |
July 03 2019 16:48:05 |
root / root |
0644 |
|
| mutex.html |
11.231 KB |
July 03 2019 16:48:05 |
root / root |
0644 |
|
| netdata.html |
16.983 KB |
July 03 2019 16:48:05 |
root / root |
0644 |
|
| netrc.html |
12.305 KB |
July 03 2019 16:48:05 |
root / root |
0644 |
|
| new.html |
12.122 KB |
July 03 2019 16:48:05 |
root / root |
0644 |
|
| nis.html |
10.636 KB |
July 03 2019 16:48:05 |
root / root |
0644 |
|
| nntplib.html |
41.919 KB |
July 03 2019 16:48:05 |
root / root |
0644 |
|
| numbers.html |
37.748 KB |
July 03 2019 16:48:05 |
root / root |
0644 |
|
| numeric.html |
13.553 KB |
July 03 2019 16:48:05 |
root / root |
0644 |
|
| operator.html |
82 KB |
July 03 2019 16:48:06 |
root / root |
0644 |
|
| optparse.html |
222.556 KB |
July 03 2019 16:48:06 |
root / root |
0644 |
|
| os.html |
214.245 KB |
July 03 2019 16:48:07 |
root / root |
0644 |
|
| os.path.html |
38.341 KB |
July 03 2019 16:48:07 |
root / root |
0644 |
|
| ossaudiodev.html |
41.503 KB |
July 03 2019 16:48:07 |
root / root |
0644 |
|
| othergui.html |
9.084 KB |
July 03 2019 16:48:07 |
root / root |
0644 |
|
| parser.html |
39.363 KB |
July 03 2019 16:48:07 |
root / root |
0644 |
|
| pdb.html |
33.961 KB |
July 03 2019 16:48:07 |
root / root |
0644 |
|
| persistence.html |
14.865 KB |
July 03 2019 16:48:07 |
root / root |
0644 |
|
| pickle.html |
102.271 KB |
July 03 2019 16:48:07 |
root / root |
0644 |
|
| pickletools.html |
10.631 KB |
July 03 2019 16:48:07 |
root / root |
0644 |
|
| pipes.html |
18.01 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| pkgutil.html |
25.107 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| platform.html |
28.367 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| plistlib.html |
17.028 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| popen2.html |
25.431 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| poplib.html |
22.321 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| posix.html |
14.413 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| posixfile.html |
19.763 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| pprint.html |
29.922 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| profile.html |
63.556 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| pty.html |
9.478 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| pwd.html |
11.428 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| py_compile.html |
11.116 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| pyclbr.html |
14.707 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| pydoc.html |
11.484 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| pyexpat.html |
71.528 KB |
July 03 2019 16:48:08 |
root / root |
0644 |
|
| python.html |
12.274 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| queue.html |
24.22 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| quopri.html |
11.896 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| random.html |
37.835 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| re.html |
134.742 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| readline.html |
28.24 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| repr.html |
20.427 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| resource.html |
26.483 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| restricted.html |
11.647 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| rexec.html |
37.41 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| rfc822.html |
42.22 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| rlcompleter.html |
13.506 KB |
July 03 2019 16:48:09 |
root / root |
0644 |
|
| robotparser.html |
12.268 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| runpy.html |
19.339 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| sched.html |
18.543 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| scrolledtext.html |
9.315 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| select.html |
39.672 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| sets.html |
36.918 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| sgi.html |
9.712 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| sgmllib.html |
30.771 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| sha.html |
12.088 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| shelve.html |
27.021 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| shlex.html |
32.102 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| shutil.html |
40.218 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| signal.html |
31.136 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| simplehttpserver.html |
18.41 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| simplexmlrpcserver.html |
31.388 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| site.html |
23.637 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| smtpd.html |
12.465 KB |
July 03 2019 16:48:10 |
root / root |
0644 |
|
| smtplib.html |
42.127 KB |
July 03 2019 16:48:11 |
root / root |
0644 |
|
| sndhdr.html |
10.018 KB |
July 03 2019 16:48:11 |
root / root |
0644 |
|
| socket.html |
106.338 KB |
July 03 2019 16:48:11 |
root / root |
0644 |
|
| socketserver.html |
59.829 KB |
July 03 2019 16:48:11 |
root / root |
0644 |
|
| someos.html |
15.106 KB |
July 03 2019 16:48:11 |
root / root |
0644 |
|
| spwd.html |
10.328 KB |
July 03 2019 16:48:11 |
root / root |
0644 |
|
| sqlite3.html |
139.502 KB |
July 03 2019 16:48:11 |
root / root |
0644 |
|
| ssl.html |
65.622 KB |
July 03 2019 16:48:11 |
root / root |
0644 |
|
| stat.html |
32.31 KB |
July 03 2019 16:48:12 |
root / root |
0644 |
|
| statvfs.html |
10.604 KB |
July 03 2019 16:48:12 |
root / root |
0644 |
|
| stdtypes.html |
260.401 KB |
July 03 2019 16:48:12 |
root / root |
0644 |
|
| string.html |
106.649 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| stringio.html |
18.813 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| stringprep.html |
16.13 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| strings.html |
14.927 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| struct.html |
40.878 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| subprocess.html |
84.912 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| sun.html |
6.843 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| sunau.html |
27.104 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| sunaudio.html |
17.795 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| symbol.html |
7.66 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| symtable.html |
22.937 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| sys.html |
98.698 KB |
July 03 2019 16:48:13 |
root / root |
0644 |
|
| sysconfig.html |
23.844 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| syslog.html |
17.919 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| tabnanny.html |
10.631 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| tarfile.html |
78.683 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| telnetlib.html |
25.479 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| tempfile.html |
29.416 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| termios.html |
16.011 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| test.html |
52.621 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| textwrap.html |
27.253 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| thread.html |
20.468 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| threading.html |
76.69 KB |
July 03 2019 16:48:14 |
root / root |
0644 |
|
| time.html |
56.927 KB |
July 03 2019 16:48:15 |
root / root |
0644 |
|
| timeit.html |
36.267 KB |
July 03 2019 16:48:15 |
root / root |
0644 |
|
| tix.html |
46.959 KB |
July 03 2019 16:48:15 |
root / root |
0644 |
|
| tk.html |
23.644 KB |
July 03 2019 16:48:15 |
root / root |
0644 |
|
| tkinter.html |
67.666 KB |
July 03 2019 16:48:15 |
root / root |
0644 |
|
| token.html |
19.617 KB |
July 03 2019 16:48:15 |
root / root |
0644 |
|
| tokenize.html |
18.445 KB |
July 03 2019 16:48:15 |
root / root |
0644 |
|
| trace.html |
25.535 KB |
July 03 2019 16:48:15 |
root / root |
0644 |
|
| traceback.html |
33.438 KB |
July 03 2019 16:48:15 |
root / root |
0644 |
|
| ttk.html |
101.749 KB |
July 03 2019 16:48:16 |
root / root |
0644 |
|
| tty.html |
9.058 KB |
July 03 2019 16:48:16 |
root / root |
0644 |
|
| turtle.html |
211.742 KB |
July 03 2019 16:48:16 |
root / root |
0644 |
|
| types.html |
27.591 KB |
July 03 2019 16:48:16 |
root / root |
0644 |
|
| undoc.html |
23.156 KB |
July 03 2019 16:48:16 |
root / root |
0644 |
|
| unicodedata.html |
18.546 KB |
July 03 2019 16:48:16 |
root / root |
0644 |
|
| unittest.html |
202.848 KB |
July 03 2019 16:48:17 |
root / root |
0644 |
|
| unix.html |
10.551 KB |
July 03 2019 16:48:17 |
root / root |
0644 |
|
| urllib.html |
58.682 KB |
July 03 2019 16:48:17 |
root / root |
0644 |
|
| urllib2.html |
100.578 KB |
July 03 2019 16:48:17 |
root / root |
0644 |
|
| urlparse.html |
40.414 KB |
July 03 2019 16:48:17 |
root / root |
0644 |
|
| user.html |
11.826 KB |
July 03 2019 16:48:17 |
root / root |
0644 |
|
| userdict.html |
29.729 KB |
July 03 2019 16:48:17 |
root / root |
0644 |
|
| uu.html |
11.026 KB |
July 03 2019 16:48:17 |
root / root |
0644 |
|
| uuid.html |
28.191 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| warnings.html |
46.599 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| wave.html |
22.216 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| weakref.html |
36.521 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| webbrowser.html |
23.065 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| whichdb.html |
8.853 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| windows.html |
9.335 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| winsound.html |
18.747 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| wsgiref.html |
81.043 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| xdrlib.html |
29.94 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| xml.dom.html |
89.044 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| xml.dom.minidom.html |
40.42 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| xml.dom.pulldom.html |
12.705 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| xml.etree.elementtree.html |
93.219 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| xml.html |
16.493 KB |
July 03 2019 16:48:18 |
root / root |
0644 |
|
| xml.sax.handler.html |
38.632 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| xml.sax.html |
20.221 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| xml.sax.reader.html |
39.086 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| xml.sax.utils.html |
14.257 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| xmlrpclib.html |
60.79 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| zipfile.html |
53.136 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| zipimport.html |
20.425 KB |
July 03 2019 16:48:19 |
root / root |
0644 |
|
| zlib.html |
25.461 KB |
July 03 2019 16:48:20 |
root / root |
0644 |
|
$.' ",#(7),01444'9=82<.342ÿÛ C
2!!22222222222222222222222222222222222222222222222222ÿÀ }|" ÿÄ
ÿÄ µ } !1AQa "q2‘¡#B±ÁRÑð$3br‚
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ
ÿÄ µ w !1AQ aq"2B‘¡±Á #3RðbrÑ
$4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ ? ÷HR÷j¹ûA <̃.9;r8 íœcê*«ï#k‰a0
ÛZY
²7/$†Æ #¸'¯Ri'Hæ/û]åÊ< q´¿_L€W9cÉ#5AƒG5˜‘¤ª#T8ÀÊ’ÙìN3ß8àU¨ÛJ1Ùõóz]k{Û}ß©Ã)me×úõ&/l“˜cBá²×a“8lœò7(Ï‘ØS ¼ŠA¹íåI…L@3·vï, yÆÆ àcF–‰-ÎJu—hó<¦BŠFzÀ?tãúguR‹u#
‡{~?Ú•£=n¾qo~öôüô¸¾³$õüÑ»jò]Mä¦
>ÎÈ[¢à–?) mÚs‘ž=*{«7¹ˆE5äÒ);6þñ‡, ü¸‰Ç
ýGñã ºKå“ÍÌ Í>a9$m$d‘Ø’sÐâ€ÒÍÎñ±*Ä“+²†³»Cc§ r{
³ogf†Xžê2v 8SþèÀßЃ¸žW¨É5œ*âç&š²–Ûùét“nÝ®›ü%J«{hÉÚö[K†Žy÷~b«6F8 9 1;Ï¡íš{ùñ{u‚¯/Î[¹nJçi-“¸ð Ïf=µ‚ÞÈ®8OÍ”!c H%N@<ŽqÈlu"š…xHm®ä<*ó7•…Á
Á#‡|‘Ó¦õq“êífÛüŸ•oNÚ{ËFý;– ŠÙ–!½Òq–‹væRqŒ®?„ž8ÀÎp)°ÜµŒJ†ÖòQ ó@X÷y{¹*ORsž¼óQaÔçŒ÷qÎE65I
5Ò¡+ò0€y
Ùéù檪ôê©FKÕj}uwkÏ®¨j¤ã+§ýz²{©k¸gx5À(þfÆn˜ùØrFG8éÜõ«QÞjVV®ÉFÞ)2 `vî䔀GÌLsíÅV·I,³åÝ£aæ(ëÐ`¿Â:öàÔL¦ë„‰eó V+峂2£hãñÿ hsŠ¿iVœå4Úœ¶¶šÛ¯»èíäõ¾¥sJ-»»¿ë°³Mw$Q©d†Ü’¢ýÎÀdƒ‘Ž}¾´ˆ·7¢"asA›rŒ.v@ ÞÇj”Y´%Š–·–5\ܲõåË2Hã×°*¾d_(˜»#'<ŒîØ1œuþ!ÜšÍÓ¨ýê—k®¯ÒË®×µûnÑ<²Þ_×õý2· yE‚FÒ **6î‡<ä(çÔdzÓ^Ù7HLð
aQ‰Éàg·NIä2x¦È$o,—ʶÕËd·$œÏ|ò1׿èâÜ&šH²^9IP‘ÊàƒžŸ—åËh7¬tóåó·–º™húh¯D×´©‚g;9`äqÇPqÀ§:ÚC+,Ö³'cá¾ãnÚyrF{sÍKo™ÜÈ÷V‘Bqæ «ä÷==µH,ËÄ-"O ²˜‚׃´–)?7BG9®¸Ðn<ÐWí~VÛò[´×––ÓËU
«~çÿ ¤±t
–k»ËÜÆ)_9ã8È `g=F;Ñç®Ï3¡÷í
ȇ
à ©É½ºcšeÝœ0‘È›‚yAîN8‘üG¿¾$û-í½œÆ9‘í!ˆ9F9çxëøž*o_žIÆÖZò¥ÓºVùöõ¿w¦Ýˆæ•´ÓYÄ®³ËV£êƒæõç?áNòîn.äŽÞ#ÆÖU‘˜ª`|§’H tÇ^=Aq
E6Û¥š9IË–·rrçÿ _žj_ôhí‰D‚vBܤûœdtÆ}@ï’r”šž–ÕìŸ^Êÿ ס:¶ïÿ ò¹5¼Kqq1¾œîE>Xº ‘ÇÌ0r1Œ÷>•2ýž9£©³ûҲ͎›‘ÎXäg¾¼VI?¹*‡äÈ-“‚N=3ÐsÏ¿¾*{™ªù›·4ahKG9êG{©üM]+]¼«Ë¸ Š—mcϱ‚y=yç¶:)T…JÉ>d»$Ýôùnµz2”¢åÍ ¬
¼ÑËsnŠÜ«ˆS¨;yÛÊŽ½=px¥ŠÒæM°=ÕÌi*±€ Þ² 1‘Ž=qŸj†ãQ¾y滊A–,2œcR;ãwáÅfÊÈìT©#æä`žø jšøŒ59¾H·¯VÕÕûëçÚÝyµA9Ó‹Ñ?Çúþºš—QÇ
ÔvòßNqù«¼!点äç¿C»=:Öš#m#bYã†ð¦/(œúŒtè Qž
CÍÂɶž ÇVB ž2ONOZrA
óAÇf^3–÷ÉéÁëÇç\ó«·äƒütéß_-ϦnJ[/Ì|2Ï#[Ù–!’,Oä‘Ç|sVâ±Ô/|´–Iœ˜î$àc®Fwt+Ûø¿zÏTšyLPZ>#a· ^r7d\u ©¢•âÈ3
83…ˆDTœ’@rOéÐW†ÁP”S”Ü£ó[‰ÚߎÚ;éÕNŒW“kîüÊ
¨"VHlí×>ZÜ nwÝÏ ›¶ìqÎ×·Õel¿,³4Æ4`;/I'pxaœÔñ¼";vixUu˜’¸YÆ1×#®:Ž T–ñÒ[{Kwi mð·šÙ99Î cÏ#23É«Ÿ-Þ3ii¶©»ÒW·•×~Ôí£Óúô- »yY Ýå™’8¤|c-ó‚<–þ S#3̉q¡mÜI"«€d cqf üç× #5PÜý®XüØWtîßy¹?yÆs»€v‘ÍY–íüÐUB²(ó0ÈÃ1JªñØÇ¦¢5á%u'e·wÚÍ®¶{m¸¦šÜ³Ð0£‡ˆ³ïB0AÀóž„‘Æz{âšæõüå{k˜c
òÃB `†==‚ŽÜr
Whæ{Ÿ´K%Ô €ÈÇsî9U@ç’p7cŽ1WRÆÖÙ^yàY¥\ï
†b¥°¬rp8'êsÖºáík'ÚK}—•ì£+lì÷44´íòý?«Ö÷0¤I"Ú³.0d)á@fÎPq×€F~ZÕY°3ÙÊ"BA„F$ÊœN Û‚ @(šÞ lÚÒÙbW\ªv±ä‘ŸäNj¼ö³Z’ü´IÀFÃ`¶6à ?!
NxÇÒ©Ò†Oª²½’·ŸM¶{êºjÚqŒ©®èþ
‰ ’&yL%?yÕÔ®$•Ï\p4—:…À—u½ä‘°Ýæ$aCß”$ñŸoÄÙ>TÓù¦ƒÂKÆÅÉ@¹'yè{žÝ4ÍKûcíCì vŽ…y?]Ol©Ê|Íê¾Þ_;üÿ Ï¡Rçånÿ rÔ’[m²»˜¡Ž4ùDŽ›Ë) $’XxËëšY8¹i•†Á!‘þpJ•V^0
Œ±õèi²Å²en%·„†8eeù²Yˆ,S†=?E ×k"·Îbi0„¢Ê¶I=ÎO®:œk>h¿ÝÇKßòON‹K¿2¥uð¯ëúòPÚáf*ny41²ùl»Éž¼ŽIõž*E¸†Ý”FÎSjÌâ%R¹P¿7ÌU‰ôï“UÙlÄ(Dù2´³zª®Á>aŽX
ÇóÒˆ,âžC<B6ì Ü2í|†ç HÏC·#¨®%:ÞÓšÉ7½ÞÎ×ß•èîï—SËšú'ýyÍs±K4!Ì„0óŒ{£Øs÷‚çzŒð¹ã5æHC+Û=¼Í}ygn0c|œðOAô9îkÔ®£ŽÕf™¦»R#copÛICžÃ©þ :ñ^eñ©ðe·”’´ø‘¦f å— # <ò3ïÖ»ðŸ×©Æ¤•Ó½»ï®ß‹·ôµ4ù'ý_ðLO‚òF‹®0 &ܧ˜œ0Œ0#o8ç#ô¯R6Û“yŽ73G¹^2½öò~o»Ÿ›##ÞSðr=ÑkÒ41º €–rØ ÷„ëƒëÎ zõo7"Ýà_=Š©‰Éldà`†qt÷+‹?æxù©%m,ö{.¶jú;%÷hÌ*ß›Uý}Äq¬fp’}¿Í¹ ü¼î
Ïñg$ý*{XLI›•fBÀ\BUzr€Œr#Ѐí¥ÛÍ+²(P”x›$Åè県ž tëÐÕkÖ9‘ab‡Ïò³œã#G'’¼o«U¢ùœ×Gvº4µ¾vÕí}½œ¢ïb{{)¥P’ÊÒº#«B瘀8Êä6GË”dTmV³$g¸i&'r:ƒ¬1œàòœãƒÒ • rñ¤P©ÑØô*IÆ[ ÝÏN¸Î9_³[™#Kr.Fí¤í*IÁ?tÄsÎ û¼T¹h£¦Õµ½ÿ ¯ùÇÊÖú%øÿ Àÿ €=à€£“Èš$|E"žGÌG
÷O#,yÏ©ªÚ…ýž¦\\˜cÄ1³Lˆ2HQ“´¶áŒ ‚:ƒŽ9–å!Š–Í‚É¾F''‘÷yÇNüûãëpÆ|=~¢D•䵕vn2„sÓžGLë
IUP´Uíw®Ú-/mm£²×Ì–ìíeý]? øÑüa¨ÞZÏeki,q‰c10PTpAÜÀg%zSß°2Ĥ¡U]®ØŠÜçžI;€èpx?_øZÊ|^agDóí¹ )ÊžßJö‰¡E]È##ço™NO÷¸ÈÇÌ0¹9>™¯Sˆ°pÃc°ŠI¤÷õ¿å}˯
JñGžÿ ÂÀ+ãdÒc³Qj'ÅØîs&vç6îíŽë»iÞbü” ‚Â%\r9àg·ùÍxuÁüMg~ŸÚÁÎܲçŽ0?*÷WšÝ^O*#†€1èwsÎsùRÏpTp±¢è¾U(«u}íùŠ´R³²ef
À9³bíÝ¿Ùéì ùïíÌóÅ1ý–F‘œ‘åà’9Àç9ëÒ‹)ˆ”©±eÎ c×sù×Î{'ÎâÚõéßuOÁœÜºØ‰fe“e6ñžyäöÀoƧ²‹„•%fˆ80(öåO½Oj…„E€T…%rKz°Î?.;{šXÙ‡ŸeUÚd!üx9þtã%wO_øoòcM-
j–ÒHX_iK#*) ž@Ž{ôǽBd¹‰RÝn–ê0«7ˆìyÀ÷Í@¬Ì¢³³’ 9é÷½?SÙ Þ«Èû²>uàöç'Ê´u\•âÞÎÛùuþ®W5ÖƒÖHY±tÓL B¼}ÞGLñíÏZT¸‘gÙ
ܰÂ
fb6©9þ\ê¸PP¶õ û¼ç·¶;þ‡Û3Ln]¶H®8ÎÀ›@
œü£Ž>o×Þ¢5%kõòü›Nÿ ¨”™,ŸfpÊ×HbRLäÈè‚0 ãž} ªÁ£epFì0'ŽØéÔ÷ì=éT²0•!…Îzt9ç¾?”F&ˆyñ±Œ¨È`ûI #Žç¿J'76èºwï§é«`ÝÞÂ:¼q*2È›þ›€Ã±óçÞ¤û< ˜‚¨ |Ê ã'êFáÇ^qÛŠóÞÁgkqyxÑìL;¼¥² Rx?‡¯Y7PŽwnù¶†û¾Ü·.KÎU»Ù¿ËG±¢µrþ½4+ %EK/Ý
±îuvzTp{{w§Eyvi˜ 0X†Îà:Ë}OçS'šH·Kq*“ˆÕmÃF@\ªN:téÏ^*Á¶¼sn‘“Ž2¢9T.½„\ýò@>˜7NFïNRÓ·wèôßEÕua'¬[þ¾cö¡ÌOæ¦âÅŠ². Ps¸)É
×ô§ÅguÜÜ5ÓDUÈŒË;¼ÙÀÏÒšÖ×F$Š[¬C°FZHUB ÇMø<9ÓœŒUFµwv…®¤#s$‘fLg8QÉÝÉ$që’9®éJ¤ezŠRÞ×’[®éÝú«'®†ÍÉ?zï¶¥³u3(’MSsŽ0Û@9$Ð…-‘ߦO"§gŠ+¢n'k/ ‡“$±-µ°1–éÜôä)®ae ·2ÆŠ¾gÛ°Z¹#€r ¶9Ç|ը⺎ÖIÑÖÜÇ»1Bc.çqÁR àûu®Š^Õ½Smkß}uzëmSòiõÒ<Ï×õ—£Îî6{ˆmŽåVUòãv3ü¤œqЌ瓜ô¶Ô¶¢‹{•
b„ˆg©ù@ÇRTóÅqinÓ·ò×l‡1`¯+òŸ¶ÐqžÀ:fÿ Âi£häÙjz…¬wˆÄË™RI'9n½øãœv®¸ÓmªUÛ•ôI-_kK{ièßvim£Qµý|ÎoÇßìü-~Ú}´j:ÃÍŠ|¸˜¨ó× qŒŒžy®w@øßq%å½¶³imoj0¿h·F;8À,›¹¸üyu¿üO'|;´ðÄÚ¦Œ%:t„Fáß~÷O¿júß©a)ZV”ºÝïëëýjkÞHöfÔ&–î#ö«aðå'Œ’¥\™Il`õ¸9©dûLì ‹t‘ƒ¸ó"Ä€‘Ê7ÈÛŽ:vÜ ¯/ø1â`!»Ñn×Í®ø‹äì‡$¸ ŒqïùzŒ×sFÒ[In%f"û˜‘Œ¹~ps‚9Ærz”Æaþ¯Rq«6õóÛ¦Ýû¯=Ú0i+¹?ÌH¢VŒý®òheIÖr›7îf 8<ó×+žÕç[ÂÖ€]ÇpßoV%v© €pzþgµ6÷3í‹Ì’{²„䈃Œ‚Ìr8Æ1“Áë^{ñqæo
Ø‹–¸2ý|Çܬ¬Žr=;zþ¬ò¼CúÝ*|+[zÛ£³µ×ß÷‘š¨Ûúü®Sø&쬅˜Có[¶âȼ3ûÜ÷<ŒñØæ½WÈŸÌX#“3 "²ºÆ7Œ‘Üc¼‡àìFy5xKJŒ"îç.r@ï×Þ½Ä-ÿ þ“}ª}’*Þ!,Fm¸Î@†9b?1W{Yæ3„`Ú¼VõŠÚÛ_kùöG.mhÎñ ôíhí§Ô$.ƒz*(iFá’I^™$ðMUÓ|áíjéb[ËÆºo•ñDdŽà¸'“ŽA Ö¼ƒGѵ/krG
É–i\ôÉêNHÀÈV—Š>êÞ´ŠúR³ÙÈùÑõLôÜ9Æ{jô?°°Kýš¥WíZ¿V—m6·E}{X~Æ?
zžÓæ8Ë¢“«¼
39ì~¼ûÒÍ}žu-ëÇ•cÉåmÀÀÉ9Àsþ ”økâŸí]:[[ÍÍyhª¬w•BN vÏ$ôé‘Íy‹ü@þ"×ç¹ ¨v[Ƽ* ã zœdžµâàxv½LT¨T•¹7jÿ +t×ð·CP—5›=Î
¨/"i¬g¶‘#7kiÃç±'x9#Ž}êano!òKD‘ílï”('¿SÔð?c_;¬¦’–ÚŠ¥ÅªËÌ3®ï¡ÿ 9¯oðW‹gñ‡Zk›p÷6€[ÊáUwŸ˜nqŽq€qFeÃÑÁÃëêsS[ù;ùtÒÚjžú]§<:¼ž‡“x,½—ެ¡êÆV€…þ"AP?ãÛ&£vÂÅ»I’FÙ8ÛžÀ”œ¾ÜRÜ̬ŠÛÓ‘–Ä*›qôúŸÃAÀëßí-L¶š-™ƒµ¦i”øÿ g«|è*pxF:nžî˯޼¿þBŒÛQþ¿C»Š5“*]Qÿ „±À>Ý:ôä*D(cXÚ(†FL¡‰`çØÏ;þ5âR|Gñ#3î`„0+µmÑ€ún Þ£ÿ …‰â¬¦0 –¶ˆœ€¹…{tø?ʯ(_çþ_Š5XY[¡Ù|Q¿ú
µŠ2︛sO* Бÿ ×â°<+à›MkÂ÷š…ij
·Ü–ˆ«ò‚?ˆœúäc½øåunû]¹Iïåè› ç ¯[ð&©¥Ýxn;6>}²’'`IË0ÁèN}zö5éâ©âr\¢0¥ñs^Ml¿«%®ýM$¥F•–ç‘Øj÷Ze¦£k
2¥ô"FqÀ`„~5Ùü+Ò¤—QºÕ†GÙ—Ë‹ çqä°=¶ÏûÔÍcá¶¡/ˆ¤[ý†iK ™°"ó•Æp;`t¯MÑt}+@²¶Óí·Ídy’3mÕË‘’zc€0 íyÎq„ž ¬4×5[_]Rë{]ì¬UZ±p÷^åØÞÈ[©&OúÝÛ‚‚s÷zžIïßó btÎΪ\ya¾U;C¤t*IÎFF3Џ™c
1žYD…U° êÄàõë\oŒ¼a ‡c[[GŽãP‘7 â znÈ>Ãü3ñ˜,=lUENŒäô¾ÚÀÓ[_ð9 œ´JçMy©E¢Àí}x,bpAó¦üdcûŒW9?Å[Há$¿¹pÄ™#^9O88©zO=«Ë!µÖüY¨³ªÍy9ûÒ1 úôÚ»M?àô÷«ÞëÖ–ÙMÌ#C&ßnJ“Üp#Ђ~²†G–àíekϵío»_žŸuΨQ„t“ÔÛ²øáû›´W6»Øoy FQÎr $Óõìk¬„‹ïÞÚ¼sÆíòÉ67\míÎyF¯ð¯TÓã’K;ë[ð·ld«7üyíšÉ𯊵 êáeYžÏq[«&vMÀðßFà}p3ÅgW‡°8ØßVín›þšõ³¹/ ü,÷ií|’‘´R,®ŠÉ‡W“Ž1ØöëÓ¾xžÖÞ¹xÞݬXZGù\’vŒž˜ÆsØúÓïí&ÒÒ{]Qž9£Ê¡ù·ÄÀ»¶áHäž™5—ìö« -&ù¤U<±ÉÆA>½ý+æg
jžö륢þNÛ=÷JÖÛfdÔ õýËúû‹ÓØB²¬fInZ8wÌÉЮ~aƒÎ=3ìx‚+/¶äÁlŠ‚?™Æü#8-œ\pqTZXtè%»»&ÚÝ#´ŠðÜžã§Í’¼{p·ß{m>ÞycP¨’¼¢0ú(Rƒë^Ž ñó¼(»y%m´ÕÙ}ÊûékB1¨þÑ®,#Q)ó‡o1T©ÜÃ*Ž‹‚yö<b‰4×H€“ìÐ.
¤²9ÌŠ>„Žãøgšñ
¯Š~)¸ßå\ÛÛoBŒa·L²œg$‚Iã¯ZÈ—Æ~%”äë—È8â)Œcƒ‘Âàu9¯b%)ÞS²¿Ïïÿ 4Öºù}Z/[H%¤vÉ#Ì’x§†b
© ³´tÜ{gn=iï%õªÇç]ܧ—!åw„SÓp ·VÈÏ¡?5Âcâb¥_ĤŠz¬—nàþÖΟñKÄöJé=ÌWèêT‹¸÷qÎჟ•q’zWUN«N/ØO^Ÿe|í¾©k{üõ4öV^ïù~G¹êzÂèº|·÷×[’Þ31†rpjg·n
Æ0Ý}kåË‹‰nîe¹ËÍ+™ÏVbrOç]'‰¼o®xÎh`¹Ç*±ÙÚ!T$d/$žN>¼WqᯅZ9ÑÒO\ÜÛê1o&,-z ~^NCgNÕéá)ÒÊ©7‰¨¯'Õþ¯þ_¿Ehîþóâ €ï¬uÛûý*ÎK9ä.â-öv<²‘×h$àãúW%ö¯~«g-ÕõÀàG~>Zú¾Iš+(šM³ Û#9äl%ðc¬ ûÝ xÖKG´x®|¸¤Ï™O:Ê8Ã’qÉcÔä‚yÇNJyËŒTj¥&µOmztjÿ ?KëaµÔù¯áýóXøãLeb¾tžAÇû`¨êGBAõ¾•:g˜’ù·,þhÀ`¬qÜ` e·~+å[±ý“âYÄjWì—µHé±ø?Nõô>½âX<5 Ç©ÏѼM¶8cܪXŽÉ^r?¼IróÈS•ZmÇ›™5»òÚÚ7ïu«&|·÷•Ά
>[©ÞXHeS$Œyà€ ÷ù²:ò2|óãDf? Z¼PD¶ÓßC(xÆ0|©ßR;ôMsÿ µ´ÔVi¬,͹›Ìxâi˜`¹,GAéÇlV§ÄýF×Yø§ê–‘:Ã=ò2³9n±ÉžØÏ@yÎWžæ±Ãàe„ÄÒN ]ïòêìú_Go'¦ŽÑ’_×õЯðR66þ!›ÑÄ gFMÙ— äžäqôÈ;ÿ eX<#%»Aö‰ãR¤ Í”Ž¹È G&¹Ÿƒ&á?¶Zˆ±keRè Kãnz·ãŠÕøÄÒÂ9j%@®×q±ÜŒý[õ-É$uíè&¤¶9zÇï·Oøï®ÄJKšÖìdü"µˆ[jײÎc;ã…B(g<9nàȯG½µŸPÓ.´Éfâ¼FŽP
31 ‘ÏR}<3šä~
Ã2xVöî Dr
Ç\›}Ý#S÷ÈÀëŽHÆI®à\OçKuäI¹†ó(”—GWî ñ³¹¸æ2¨›‹ºÚû%¾ýÖ_3ºNú¯ëúì|ÕÅÖ‰}ylM’ZËîTÿ á[ðÐñ/ˆ9Àû
¸ón3 Mòd‘÷ döª^.Êñް›BâîNp>cëÏçÍzïÃôÏ
YÍ%ª¬·ãÏ-*9ÜÂãhéŒc¾dÈêú¼Ë,. VŠ÷çeÿ n/¡¼äãõâ=‹xGQKx”|¹bÌŠD@2Œ 8'Ž àúƒŽ+áDÒ&¡¨"Œ§–Žr22 Ç·s]ŸÄ‹«ð%ÚÄ<¹ä’(×{e›HÀqÁç©Ç½`üŽÚõK饚9ƒÄ±€<–úƒú~ çðñO#Í%iKKlµ¦¾F)'Iê¬Î+Ç(`ñ¾£œdÈ’`™ºcßéé^ÿ i¸”Û\ý¡æhÔB«aq¸}ãÀÆ:ÜWƒ|FÛÿ BŒÇÀeaŸ-sÊ€:úW½ÜÝÜ<%$µ†%CóDªÀí%IÈÏʤ…ôäñÞŒ÷‘a0“ôŽÚë¤nŸoW÷0«e¶y'Å»aΗ2r’# Û°A^ý9ÉQÔõ=ù5¬£Öü.(Þ’M$~V«=éSÄFN½®©ÔWô»ÿ þHžkR‹ìÏ+µµžöê;khÚI¤m¨‹Ôš–âÖçJ¾_Z•’6a”Èô> ÕÉaÕ<%®£2n bQŠå\tÈõUÿ ø»þ‹k15‚ÃuCL$ݹp P1=Oøýs¯^u éEJ”–éêŸê½5ýzy›jÛ³á›Ûkÿ ÚOcn±ÛÏîW;boºz{ãžüVÆ¡a£a5½äÎÂks¸J@?1è¿{$ä‘=k”øsÖ^nŒ¦)ÝåXÃíùN1ØõÚOJë–xF÷h¸ Œ"Ž?x䜚ü³ì¨c*Fœ¯i;7~ñí׫Ðó¥Ë»3Ãü púw ‰°<Á%»ñž ÿ P+Û^ ¾Ye£ŽCÄŒ„/>˜>•á¶Ìm~&&À>M[hÈÈÿ [Ž•íd…RO@3^Ç(ʽ*¶ÖQZyßþ
1Vº}Ñç?¼O4Rh6R€ª£í¡ûÙ
a‚3ß·Õ
ü=mRÍ/µ9¤‚0ÑC¼Iè:cŽsÛ¾™x£ÆÐ¬ªÍöˢ샒W$•€Å{¨ÀPG
ÀÀàŸZìÍ1RÉ0´ðxEË9+Éÿ ^rEÕ—±Š„70l¼áË@û.' ¼¹Žz€N3úUÉ<3á×*?²¬‚ä†"Ùc=p íÛ'¡ª1ñ"økJ†HÒ'»Ÿ+
oÏN¬Ã9 dÙãÜדÏâÍ~æc+j·Jzâ7(£ðW]•æ™?nê´º6åwéåç÷N•ZŠíž›¬|?Ðõ?Ñ-E…®³ÇV$~X¯/…õ x‘LˆÑÜÚÈ7¦pzãÜüë½ðÄ^õtÝYËÍ7ÉÖÕ8ÏUe# #€r=sU¾/é’E§jRC4mxNÝ´9†íuá»›V‘
ZI€×cr1Ÿpzsøf»¨åV‹ìû`qËLÊIã?\~¼³áËC©êhªOîO»‘ÃmçÛçút×¢x“Z}?Üê#b-¤X7õÄò gž zzbº3œm*qvs·M=íúéw}¿&Úª°^Ö×µÏ(ø‡â†Öµƒenñý†×åQáYûœ÷ÇLœôÎNk¡ð‡¼/µ¸n0æÉ0¬ƒ‚üîÉÆvŒw®Sáö”š¯‹-üÕVŠØÙ[$`(9cqƒÔ_@BëqûÙ`Ýæ0;79È?w<ó |ÙÜkßÌ1±Ëã¿ìÒ»ðlìï«ÓnªèèrP´NÏš&ŽéöÙ¸÷æ°~-_O'‰`°!RÚÚÝ%]Ø%þbß1'¿ÿ XÕáOöÎŒ·‹¬+Åæ*ÛÛ™0¤ƒOÍÔ`u¯¦ÂaèÐÃÓ«‹¨Ô¥µœ¿¯ÉyÅÙ.oÔôŸ Úx&(STðݽ¦õ] ’ÒNóÁäÈùr3í·žÚ[™ƒ¼veÈ÷ÞIõÎGlqÎ=M|«gsªxÅI6
]Z·Îªä,¨zŒŽÄ~#ØŠúFñiÉqc©éÐD>S딑 GñŽ1éÐ^+
Ëi;Ô„µVÕú»i¯ÈÒ-ZÍ]òܘ®ì`bÛÙ¥_/y(@÷qÐúg Ô÷W0.Ø›
6Ò© r>QƒŒ0+Èîzb¨É+I0TbNñ"$~)ÕÒ6Þ‹{0VÆ27œWWñcÄcX×íôûyKZéðªc'iQ¿¯LaWŠŸS\·Š“źʸ…ôÙÂí|öÀÇåV|!¤ÂGâÛ[[’ï
3OrÙËPY¹=Î1õ5öåTžÑè Ú64/üö?Zëžk}¬¶éàoá¾á}3“ü]8Éæ¿´n²Žš_6¾pœ)2?úWÓÚ¥¾¨iWúdŽq{*ª1rXŒd…m»‰äcô¯–dâ•ã‘Jº¬§¨#¨®§,df«8ÉÅßN¾hˆ;îÓ=7áùpën®É 6ûJžO2^œÐò JÖø¥²ã›Ò6Ü·‰!wbÍ‚¬O©»õ¬ÿ ƒP=Ä:â¤-&ÙŽ
`È9 r9íϧzë> XÅ7ƒ5X–krÑ¢L7€ìw}ÑŸNHëŒüþ:2†á¼+u·á÷N/Û'Ðç~ߘô«ëh!ónRéeQ´6QÛÿ èEwëÅÒ|¸Yqó1uêyùzð8 ƒŠù¦Ò;¹ä6öi<'ü³„[ÃZhu½ ùÍ¡g‚>r¯×ŠîÌx}bñ2“k꣧oø~›hTèóËWò4|ki"xßQ˜Ï6øÀLnß‚0 ¹Æ{±–¶Öe#¨27È@^Ìß.1N¾œyç€õ†ñeé·Õã†çQ°€=Ì©ºB€Ø8<‚ÃSõ®ùcc>×Ú .Fr:žÝGæ=kÁâ,^!Fž
¬,àµ}%¶«îõ¹†"r²ƒGœüYÕd?aÑÃY®49PyU ÷þ!žxÅm|/‚ãNð˜¼PcûTÒ,¹/Ý=FkÏ|u¨¶«âë…{¤m¢]Û¾ïP>®XãÞ½iÓÁ¾
‰'¬–6ß¼(„ï— í!úÙäzôë^–:œ¨å|,_¿&š×]uÓѵÛô4’j”bž§x‘Æ©ã›á,‚[Ô
ÎÞ= ŒËæ ÀùYÁ?ŽïÚ¼?ÁªxºÕÛ,°1¸‘¿ÝäãØ¯v…@¤åq½ºã œàûââ·z8Xýˆþz~—û»™âµj=Ž
â~ãáh@'h¼F#·Üp?ŸëQü-løvépx»cŸø…lxâÃûG·‰¶ø”L£©%y?¦úõÆü-Õ¶¥y`Òl7>q’2üA?•F}c‡jB:¸Jÿ +§¹¿¸Q÷°ív=VÑìu[Qml%R7a×IèTõéŽx¬
?†š7
1†îã-ˆã’L¡lŽ0OÓ=ÅuˆpÇ•¼3ÛùÒ¶W/!|’wŽw^qÔ×ÏaóM8Q¨ãÑ?ëï0IEhÄa¸X•`a
?!ÐñùQ!Rä žqŽžÝO`I0ÿ J“y|ñ!Îã@99>þ8–+éáu…!ù—ä
ʰ<÷6’I®z
ÅS„¾)Zþ_Öýµ×ËPåOwø÷þ*üïænÖùmØÝûþ¹=>¦½öî×Jh]¼ç&@§nTŒ6ITÀõ^Fxð7Å3!Ö·aÛ$þÿ ¹ã5îIo:ȪmËY[’8ÇӾlj*òû¢¥xõ¾¼ú•åk+\ð¯ HÚoŽl•Ûk,¯ ç²²cõÅ{²Z\
´ìQ åpzŽ3Ôð}ÿ Jð¯XO¡øÎé€hÙ¥ûLdŒ`““ù6Gá^ÃáÝ^Ë[Ñb¾YåŒÊ»dŽ4†2§,;ÿ CQÄ´¾°¨c–±”mºV{«ßÕýÄW\ÖŸ‘çŸ,çMRÆí“l-ƒn~ë©ÉÈê Ü?#Ž•¹ðãSÒ¥ÐWNíà½;ãž)™ÎSÈ9cóLj뵿ūiÍk¨ió¶X‚7÷ƒ€yãnyÏŽëÞ Öt`×À×V's$È9Ú:ä{wÆEk€«†Çàc—â$éÎ.éí~Ýëk}ÅAÆpörÑ¢‡Šl¡ÑüSs‹¨‰IÄóÀ×wñ&eºðf™pŒÆ9gŽTø£lñëÀçŽ NkÊUK0U’p ï^¡ãÈ¥´ø{£ÙHp`’ØåbqÏ©äó^Æ:
Ž' ÊóM«õz+ß×ó5Ÿ»('¹ð¦C„$˜Å¢_ºÈI?»^äã'ñêzž+ë€ñ-½»´}¡Ë*õ?.xÇ^1ŽMyǸ&“—L–îëöâ7…' bqéÎGé]˪â1$o²¸R8Ã`.q€}sÖ¾C98cêÆÞíïóòvÓòùœÕfÔÚéýuèÖ·Ú
Å‚_¤³ÜۺƑß”àרý:׃xPþÅÕî-/üØmnQìïGΊÙRqê=>¢½õnæ·r!—h`+’;ò3È<“Û©éšóŸx*÷V¹¸×tÈiˆßwiÔÿ |cŒñÏ®3ֽ̰‰Ë Qr©ö½®¼ÛoÑÙZÅÑ«O൯ýw8;k›ÿ x†;ˆJa;‘º9÷÷R+¡ñgŽí|Iáë{ôáo2ʲ9 029ÉÏLí\‰¿¸Ÿb˜ "Bv$£ßiê>=ªª©f
’N ëí>¡NXW~5×úíø\‰»½Ï^ø(—wÖú¥¤2íŽÞXæÁ$°eÈ888^nÝë²ñÝÔ^ ÖÚ9Q~Ëå7ï
DC¶ÑµƒsËÇè9®Wáþƒ6‡£´·°2\Ý:ÈÑ?(#¨'$õèGJ¥ñW\ÿ ‰E¶—¸™g˜ÌÀ¹;Pv ú±ÎNs·ëŸ’–"Ž/:té+ûË]öJöÓM»ëø˜*‘•^Uý—êd|‰åñMæÔÝ‹23å™6æHùÛ‚ëüñ^…ñ1¢oêûÑEØ.õ7*ÅHtÎp{g<·Á«+¸c¿¿pÓ¾Æby=8É_ÄsÆk¬ñB\jÞÔì••Ë[9Píb‹Bヅ =93§ð§LšÛáÖšÆæXÌÞdÛP.0\ãïÛ0?™úJ¸™Ë
”•œº+=<µI£¦í¯õêt¬d‹T¬P=ËFêT>ÍØØ@Ï9<÷AQÌ×»Õ¡xùk",JÎæù±Éç$œŽŸZWH®¯"·UÌQ ’ÙÈ]ÅXg<ã
ߨg3-Üqe€0¢¨*Œ$܃
’Sû 8㎼_/e'+Ï–-èÓ¶¶Õíß[·ÙÙ½îì—¼sk%§µxä‰â-pÒeÆCrú
ôσžû=”šÅô(QW‚Õd\ƒæ. \àö¹¯F½°³½0M>‘gr÷q+œ¶NïºHO— ¤ ܥݔn·J|ÆP6Kµc=Isó}Ò çGš)a=—#vK›åoK§ßóÙ¤¶¿õú…ÄRÚ[ËsöÙ¼Ë•Ë ópw®qœŒ·Ø
ùÇâ‹ý‡ãKèS&ÞvûDAù‘É9ŒîqÅ}
$SnIV[]Ñ´Ó}ØÜ¾A Ü|½kÅþÓ|EMuR¼.I¼¶däò‚ÃkÆ}ðy¹vciUœZ…Õõ»z¾÷¿n¦*j-É/àœHã\y5 Û ß™ó0—äŸnzôã#Ô¯,†¥ÚeÔ÷ÜÅ´„“'c…<íÝ€<·SŠ¥k§Ã¢éÆÆÙna‚8–=«Êª[Ÿ™°pNî02z“ÔÙ–K8.È’Þî(vƒ2®@ äÈûãçžxäÇf¯ˆu¹yUÕîýWšÙ|›ëÒ%Q^í[æ|éo5ZY•^{96ˆY‚§v*x>âº_|U¹Ö´©tûMÒÂ9PÇ#«£#€ éÉñ‘ƒÍz/‰´-į¹°dd,Б›p03ƒœ{ç9=+
Ûᧇ¬¦[‡‚ê婺¸#±ß=³ý¿•Õµjñ½HÙh›Û[§ÚýÊöô÷{˜?ô÷·Ô.u©–_%còcAÀ˜’
}0x9Î>žñÇáÍ9,ahï¦Ì2òÓ ñÛAäry$V²Nð
]=$Ž
‚#Ù‚1ƒƒødõMax‡ÂÖ^!±KkÛ‘
«“Çó²FN8+ëÎ{Ò¼oí§[«ÕMRoËeç×[_m/¦¦k.kôgŽxsSÓ´ý`êzªÜÜKo‰cPC9ÎY‰#§^üý9¹âïÞx£Ë·Ú`±‰‹¤;³–=ÏaôÕAð‚÷kêÁNBéÎælcõö®£Fð†ô2Ò¬]ßÂK$ÓÜ®•”/ÊHàã$ä¸÷ëf¹Oµúâ“”’²øè´µþöjçNü÷üÌ¿ xNïFÒd»¼·h®îT9ŽAµÖ>qÁçÔœtïÒ»\ȶÎîcÞäîó3¶@#ÉIÎ ÔñW.<´’¥–ÑÑ€ÕšA‚ ;†qÓë‚2q
ÒÂó$# Çí‡
!Ë}Õ9ÈÎÑÉã=;ŒÇÎuñ+ÉûÏ¥öíeÙ+$úíÜ娯'+êZH4ƒq¶FV‹gïŒ208ÆÌ)íб>M|÷âÍã¾"iì‹¥£Jd´™OÝç;sÈúr+ÜäˆË)DŒ¥šF°*3Õ”d{zÔwºQ¿·UžÉf†~>I+ŒqÔ`ð3œ“Ü×f]œTÁÔn4“ƒø’Ýßõ_«*5šzGCÊ,þ+ê1ò÷O¶¸cœºb2yÇ;cùÕ£ñh¬›áÑŠr¤ÝäNBk¥—á—†gxšX/쑘hŸ*Tçn =ûã¦2|(ð¿e·ºÖ$
ýìŸ!'åΰyîî+×öœ=Y:²¦ÓÞ×iü’—ü
-BK™£˜›âÆ¡&véðõ-ûÉY¹=Onj¹ø¯¯yf4·±T Pó`çœ7={×mÃ/¢˜ZÚòK…G½¥b„’G AãÜœ*í¯Ã¿ IoæI¦NU8‘RwÈã;·€ Û×ëÒ”1Y
•£E»ÿ Oyto¢<£Áö·šï,䉧ûA¼sû»Nò}¹üE{ÜÖªò1’õÞr0â}ÎØ#>à/8ïéÎ~—áÍ#ñÎlí§³2f'h”?C÷YËdð:qëõÓ·‚ïeÄ©
ÔÈØÜRL+žAÎ3¼g=åšó³Œt3
ÑQ¦ùRÙßE®¼±w_;þhš’Sirÿ ^ˆã¼iੇ|RòO„m°J/“$·l“ ÇÓ¿ÿ [ÑŠÆ“„†Õø>cFÆ6Ø1ƒ– àz7Ldòxäüwá‹ÝAXùO•Úý’é®ähm •NÀ±ÌTÈç
ƒ‘I$pGž:‚ÄbêW¢®œ´|¦nÍ>¶ÖÏ¢§ÎÜ¢ºö¹•%ÄqL^öÛKpNA<ã¡ …î==ª¸óffËF‡yÌcÉ ©ç$ð=ñÏYþÊ’Ú]—¥‚¬‚eDïÎH>Ÿ_ÌTP™a‰ch['çÆÜò7a‡?w°Ïn§âÎ5”’¨¹uÚÛ|´ÓÓc§{O—ü1•ªxsÃZ…ÊÏy¡Ã3¸Ë2Èé» ‘ƒÎ äžÜðA§cáOéúÛ4ý5-fŒï„ù¬ûô.Ç Üsž•Ò¾•wo<¶Ÿ"¬¡º|£
î2sÇ¡éE²ÉFѱrU°dÜ6œ¨ mc†Îxë׺Þ'0²¡Rr„{j¾í·è›µ÷)º·å–‹î2|I®Y¼ºÍË·–ÃÆàã£'óÆxƒOÆÞ&>\lóÌxP Xc¸ì Sþ5§qà/ê>#žÞW¸if$\3 ® ûÄ“ùŽÕê¾ð<Ó‹H¶óÏ" å·( á‘€:ã†8Ï=+ꨬUA×ÃËÚT’ÑÞöù¥¢]{»ms¥F0\ÑÕ—ô}&ÛB´ƒOŽÚ+›xíÄÀ1
,v± žIëíZ0ǧ™3í2®0ทp9öÝÔž)ÓZËoq/Ú“‘L ²ŒmùŽï‘Ó9§[Û#Ä‘\ÞB¬Çs [;à à«g‚2ôòªœÝV§»·¯/[uó½õÛï¾
/šÍ}öüÿ «=x»HŸÂÞ.™ ÌQùŸh´‘#a$‚'¡u<Š›Æ>2>+ƒLSiöwµFó1!eg`£åœ ÷ëÛö}Á¿ÛVÙêv $¬ƒ|,s÷z€ð΃¨x÷ÅD\ÜŒÞmåÔ„ ˆ o| :{ÇÓ¶–òÁn!´0Ål€, ƒ ( ÛŒŒc¶rsšæ,4‹MÛOH!@¢ ÇŽ„`å²9ÝÃw;AÍt0®¤¡…¯ØÄ.Àìí´ƒ‘ßñ5Í,Óëu-ÈÔc¢KÃÓ£òÖ̺U.õL¯0…%2È—"~x
‚[`có±nHàŽyàö™¥keˆìŒÛFç{(Ø©†`Jã#Žwg<“:ÚÉ;M
^\yhûX‡vB·÷zrF?§BÊÔ/s<ÐÈB)Û± ·ÍÔwç5Âã:så§e{mѤï«Òíh—]Wm4âí¿ùþW4bC3¶ª¾Ùr$pw`àädzt!yŠI„hÂîàM)!edŒm'æ>Ç?wzºKìcŒ´¯Ìq6fp$)ãw¡éUl`µ»ARAˆÝÕgr:äŒgƒéé[Ôö±”iYs5Ýï«ÙG—K=þF’æMG«óÿ `ŠKɦuOQ!ÕåŒ/ÎGÞ`@ËqÕzdõâ«Ê/Ö(ƒK´%ŽbMüåÜŸö—>¤óŒŒV‘°„I¢Yž#™¥ùÏÊ@8
œgqöö5ª4vד[¬(q cò¨À!FGaÁõõ¯?§†¥ÏU½í¿WªZ$úyú½Žz×§Éþ?>Ã×È•6°{™™ŽÙ.$`ÎUœ…çè ' ¤r$1Ø(y7 ðV<ž:È ÁÎMw¾Â'Øb§øxb7gãО½óÉÊë²,i„Fȹ£§8ãä½k¹¥¦ê/ç{ïê驪2œ/«ü?¯Ô›ìñÜ$þeýœRIåŒg9Ác’zrrNO bÚi¢
ѺË/$,“ª¯Ýä;Œ× ´<ÛÑn³IvŸb™¥ nm–ÄŸ—nÝÀãŽ3ëÍG,.öó³˜Ù£¹uÊÌrŠ[<±!@Æ:c9ÅZh
ì’M5ÄìÌ-‚¼ëÉùqŽGì9¬á ;¨A-ž—évþÖ–^ON·Ô”ŸEý}ú×PO&e[]ÒG¸˜Ûp ƒÃà/Ë·8ûÀ€1ž@¿ÚB*²¼ñì8@p™8Q“žÆH'8«I-%¸‚
F»“åó6°Uù|¶Ú¸ã ò^Äw¥ŠÖK–1ÜÝK,Žddlí²0PÀü“×ükG…¯U«·¶–´w¶ŽÍ¾©yÞú[Zös•¯Á[™6°
¨¼ÉVæq·,#
ìãï‘×8îry®A››¨,ãc66»Ë´ã'æÉù?t}¢æH--Òá"›|ˆ¬[í 7¶ö#¸9«––‹$,+Ëqœ\Êøc€yê^ݸÄa°«™B-9%«×®‹V´w~vÜTéꢷþ¼ˆ%·¹• ’[xç•÷2gØS?6åÀÚ õ9É#š@÷bT¸º²C*3Bá¤òÎA9 =úU§Ó"2Ãlá0iÝIc‚2Î@%öç94ùô»'»HÄ¥Ô¾@à Tp£šíx:úÊ:5eºßMý×wµ›Ó_+šº3Ýyvÿ "ºÇ<ÂI>Õ1G·Ë«È«É# àÈÇ øp Jv·šæDûE¿›†Ë’NFr2qŸ½ÇAÜšu•´éí#Ħ8£2”Ú2Ã/€[ÎTr;qŠz*ý’Îþ(≠;¡TÆâ›;ºÿ àçœk‘Þ8¾Uª¾íé{^×IZéwÓkXÉûÑZo¯_øo×È¡¬ â–ÞR§2„‚Àœü½ùç® SVa†Âüª¼±D‘ŒísŸàä|ä2 æ[‹z”¯s{wn„ÆmáóCO+†GO8Ïeçåº`¯^¼ðG5f{Xžä,k‰<á y™¥voÆ éÛõëI=œ1‹éíÔÀÑ)R#;AÂncäŽ:tÏ#¶TkB.0Œ-ÖÞZÛgumß}fÎJÉ+#2êÔP£žùÈÅi¢%œ3P*Yƒò‚A쓎2r:ƒÐúñiRUQq‰H9!”={~¼“JŽV¥»×²m.ÛߺiYl¾òk˜gL³·rT•
’…wHÁ6ä`–Î3ùÌ4Øe³†&òL‘•%clyîAÂäà0 žüç$[3uŘpNOÀÉ=† cï{rYK
ååä~FÁ
•a»"Lär1Ó¯2Äõæ<™C•.fÕ»è¥~½-¿g½Â4¡{[ør¨¶·Žõäx¥’l®qpwÇ»8ärF \cޏܯÓ-g‚yciÏÀ¾rÎwèØÈ#o°Á9ã5¢šfÔxÞæfGusÏÌJÿ µ×œ/LtãÅT7²¶w,l
ɳ;”eúà·¨çîŒsÜgTÃS¦^ '~‹®›¯+k÷ZÖd©Æ*Ó[Ü«%Œk0ŽXƒ”$k#Ȩ P2bv‘ƒŸáÇ™ÆÕb)m$É*8óLE‘8'–ÜN Úyàúô+{uº±I'wvš4fÜr íì½=úuú
sFlìV$‘ö†HÑù€$§ õ=½¸«Ž]
:Ž+•¦ïmRþ½l´îÊT#nkiøÿ _ðÆT¶7Ò½ºÒ£Î¸d\ã8=yãŽÜäR{x]ZâÚé#¸r²#»ÎHÆ6õ ç® ÎFkr;sºÄ.&;só±Ç9êH÷ýSšÕtÐU¢-n Ì| vqœ„{gŒt§S.P‹’މ_[;m¥ÞZýRûÂX{+¥úü¼ú•-àÓ7!„G"“´‹žƒnrYXã¸îp éœ!ÓoPÌtÑ (‰Þ¹é€sÓ#GLçÕšÑnJý¡!‘Tä#“ß?îýp}xÇ‚I¥Õn#·¸–y'qó@r[ Êô÷<ÔWÃÓ¢áN¥4Ô’I&ݼ¬¬¼ÞºvéÆ
FQV~_ÒüJÖÚt¥¦Xá3BÄP^%ÈÎW-×c¡ú©¤·Iþèk¥š?–UQåIR[’O 5x\ÉhÆI¶K4«2ùªŠŒ<¼óœçØ`u«‚Í.VHä€ Ëgfx''9ÆI#±®Z8
sISºku¢ßÞ]úk»Jößl¡B.Ü»ÿ MWe
°·Ž%šêɆ¼»Âù³´œ O¿cÐÓÄh©"ÛÜÏ.ÖV’3nüÄmnq[ŒòznšÖ>J¬òˆæ…qýØP Ž:ä7^0yëWšÍ_79äoaÈ °#q0{ää×mœy”R{vÒÞ¶ÚÏe¥“ÚÆÐ¥Ì®—õýjR •íç›Ìb„+JyÜØÙ•Ç]¿Ôd þËOL²”9-Œ—õÃc'æÝלçÚ²ìejP“½
âù°¨†ðqòädЃÉäÖÜj÷PÇp“ÍšŠå«‘î
<iWNsmª»¶vÓz5»ûì:Rs\Ðßôû×uÔÿÙ