{% set permalink = ("Link" if sphinx_version >= (7, 2) else 'Permalink') -%}
{% set heading = ("heading" if sphinx_version >= (5, 0) else 'headline') -%}{% set sig_prename_tag=("span" if sphinx_version >= (4, 0) else 'code') -%}
{% set sig_object_class=(' class="sig sig-object py"' if sphinx_version >= (4, 0) else '') -%}
<!DOCTYPE html>
<html{% if sphinx_version >= (7, 2) %} data-content_root="./"{% endif %}{% if sphinx_version >= (5, 0) %} lang="en"{% endif %}>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
  {% if docutils_version[1] == 18 %}<meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
  {% elif docutils_version[1] == 17 %}<meta content="Docutils 0.17.1: http://docutils.sourceforge.net/" name="generator"/>
  {% elif docutils_version[1] == 19 %}<meta content="Docutils 0.19: https://docutils.sourceforge.io/" name="generator"/>
  {% elif docutils_version[1] >= 20 %}<meta content="width=device-width, initial-scale=1" name="viewport"/>
  {% endif %}<title>
   sphinx-toolbox Demo - Regex — Python  documentation
  </title>{% if sphinx_version >= (7, 2) %}
  <script src="_static/documentation_options.js?v=5929fcd5">{% else %}
  <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js{% if sphinx_version >= (7, 1) %}?v=b3ba4146{% endif %}">{% endif %}
  </script>{% if sphinx_version < (6, 0) %}
  <script src="_static/jquery.js">
  </script>
  <script src="_static/underscore.js">
  </script>{% if sphinx_version >= (5, 0) %}
  <script src="_static/_sphinx_javascript_frameworks_compat.js">
  </script>{% endif %}{% endif %}
  <script src="_static/doctools.js{% if sphinx_version >= (8, 1) %}?v=9bcbadda{% elif sphinx_version >= (7, 3) %}?v=9a2dae69{% elif sphinx_version >= (7, 1) %}?v=888ff710{% endif %}">
  </script>{% if sphinx_version >= (5, 2) %}
  <script src="_static/sphinx_highlight.js{% if sphinx_version >= (7, 2) %}?v=dc90522c{% elif sphinx_version >= (7, 1) %}?v=4825356b{% endif %}">
  </script>{% endif %}
  <script src="_static/sphinx_toolbox_installation.js">
  </script>
 </head>
 <body>
  <div class="document">
   <div class="documentwrapper">
    <div class="bodywrapper">
     <div class="body" role="main">
      <div class="section" id="module-sphinx_toolbox.utils">
       <span id="sphinx-toolbox-demo-regex">
       </span>
       <h1>
        sphinx-toolbox Demo - Regex
        <a class="headerlink" href="#module-sphinx_toolbox.utils" title="{{ permalink }} to this {{ heading }}">
         ¶
        </a>
       </h1>
       <p>
        General utility functions.
       </p>
       <dl class="py data">
        <dt{{ sig_object_class }} id="sphinx_toolbox.utils.untyped_param_regex">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          sphinx_toolbox.utils.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          untyped_param_regex
         </{{ sig_prename_tag }}>
         <a class="headerlink" href="#sphinx_toolbox.utils.untyped_param_regex" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Pattern" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             Pattern
            </span>
           </code>
          </a>
          [
          <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             str
            </span>
           </code>
          </a>
          ]
         </p>
         <p>
          Regex to match
          <code class="docutils literal notranslate">
           <span class="pre">
            :param
           </span>
           <span class="pre">
            &lt;name&gt;:
           </span>
           <span class="pre">
            &lt;docstring&gt;
           </span>
          </code>
          flags.
         </p>
         <div class="versionadded">
          <p>
           <span class="versionmodified added">
            {% if sphinx_version >= (7, 3) %}Added{% else %}New{% endif %} in version 0.8.0.
           </span>
          </p>
         </div>
         <table class="{% if docutils_version < (0, 18) %}colwidths-auto {% endif %}docutils align-default">
          <tbody>
           <tr class="row-odd">
            <th class="stub">
             <p>
              <strong>
               Pattern
              </strong>
             </p>
            </th>
            <td>
             <p>
              <code class="docutils literal notranslate regex">
               <span class="regex regex_at">
                ^
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_literal">
                p
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                m
               </span>
               <span class="regex regex_branch">
                |
               </span>
               <span class="regex regex_literal">
                p
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                m
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_branch">
                |
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                g
               </span>
               <span class="regex regex_branch">
                |
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                g
               </span>
               <span class="regex regex_literal">
                u
               </span>
               <span class="regex regex_literal">
                m
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                n
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_category">
                \s
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_category">
                \w
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_category">
                \s
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_category">
                \s
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_any">
                .
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
              </code>
             </p>
            </td>
           </tr>
           <tr class="row-even">
            <th class="stub">
             <p>
              <strong>
               Flags
              </strong>
             </p>
            </th>
            <td>
             <p>
              <a class="reference external" href="https://docs.python.org/3/library/re.html#re.ASCII" title="(in Python v3.14)">
               <code class="xref py py-data docutils literal notranslate">
                <span class="pre">
                 re.ASCII
                </span>
               </code>
              </a>
             </p>
            </td>
           </tr>
          </tbody>
         </table>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="sphinx_toolbox.utils.typed_flag_regex">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          sphinx_toolbox.utils.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          typed_flag_regex
         </{{ sig_prename_tag }}>
         <a class="headerlink" href="#sphinx_toolbox.utils.typed_flag_regex" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Pattern" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             Pattern
            </span>
           </code>
          </a>
          [
          <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             str
            </span>
           </code>
          </a>
          ]
         </p>
         <p>
          Regex to match
          <code class="docutils literal notranslate">
           <span class="pre">
            :type
           </span>
           <span class="pre">
            &lt;name&gt;:
           </span>
           <span class="pre">
            &lt;type&gt;
           </span>
          </code>
          flags.
         </p>
         <div class="versionadded">
          <p>
           <span class="versionmodified added">
            {% if sphinx_version >= (7, 3) %}Added{% else %}New{% endif %} in version 0.8.0.
           </span>
          </p>
         </div>
         <table class="{% if docutils_version < (0, 18) %}colwidths-auto {% endif %}docutils align-default">
          <tbody>
           <tr class="row-odd">
            <th class="stub">
             <p>
              <strong>
               Pattern
              </strong>
             </p>
            </th>
            <td>
             <p>
              <code class="docutils literal notranslate regex">
               <span class="regex regex_at">
                ^
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_literal">
                p
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                m
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
                y
               </span>
               <span class="regex regex_literal">
                p
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_branch">
                |
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
                y
               </span>
               <span class="regex regex_literal">
                p
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_category">
                \s
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_category">
                \w
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_category">
                \s
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_category">
                \s
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_any">
                .
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
              </code>
             </p>
            </td>
           </tr>
           <tr class="row-even">
            <th class="stub">
             <p>
              <strong>
               Flags
              </strong>
             </p>
            </th>
            <td>
             <p>
              <a class="reference external" href="https://docs.python.org/3/library/re.html#re.ASCII" title="(in Python v3.14)">
               <code class="xref py py-data docutils literal notranslate">
                <span class="pre">
                 re.ASCII
                </span>
               </code>
              </a>
             </p>
            </td>
           </tr>
          </tbody>
         </table>
        </dd>
       </dl>
       <p>
        <code class="docutils literal notranslate regex">
         <span class="regex regex_at">
          ^
         </span>
         <span class="regex regex_literal">
          H
         </span>
         <span class="regex regex_literal">
          e
         </span>
         <span class="regex regex_literal">
          l
         </span>
         <span class="regex regex_literal">
          l
         </span>
         <span class="regex regex_literal">
          o
         </span>
         <span class="regex regex_category">
          \s
         </span>
         <span class="regex regex_repeat">
          +
         </span>
         <span class="regex regex_in">
          [
         </span>
         <span class="regex regex_literal">
          W
         </span>
         <span class="regex regex_literal">
          w
         </span>
         <span class="regex regex_in">
          ]
         </span>
         <span class="regex regex_literal">
          o
         </span>
         <span class="regex regex_literal">
          r
         </span>
         <span class="regex regex_literal">
          l
         </span>
         <span class="regex regex_literal">
          d
         </span>
         <span class="regex regex_in">
          [
         </span>
         <span class="regex regex_literal">
          .
         </span>
         <span class="regex regex_literal">
          ,
         </span>
         <span class="regex regex_in">
          ]
         </span>
         <span class="regex regex_subpattern">
          (
         </span>
         <span class="regex regex_literal">
          L
         </span>
         <span class="regex regex_literal">
          o
         </span>
         <span class="regex regex_literal">
          v
         </span>
         <span class="regex regex_literal">
          e
         </span>
         <span class="regex regex_literal">
          l
         </span>
         <span class="regex regex_literal">
          y
         </span>
         <span class="regex regex_branch">
          |
         </span>
         <span class="regex regex_literal">
          H
         </span>
         <span class="regex regex_literal">
          o
         </span>
         <span class="regex regex_literal">
          r
         </span>
         <span class="regex regex_literal">
          r
         </span>
         <span class="regex regex_literal">
          i
         </span>
         <span class="regex regex_literal">
          b
         </span>
         <span class="regex regex_literal">
          l
         </span>
         <span class="regex regex_literal">
          e
         </span>
         <span class="regex regex_subpattern">
          )
         </span>
         <span class="regex regex_literal">
         </span>
         <span class="regex regex_literal">
          w
         </span>
         <span class="regex regex_literal">
          e
         </span>
         <span class="regex regex_literal">
          a
         </span>
         <span class="regex regex_literal">
          t
         </span>
         <span class="regex regex_literal">
          h
         </span>
         <span class="regex regex_literal">
          e
         </span>
         <span class="regex regex_literal">
          r
         </span>
         <span class="regex regex_literal">
          ,
         </span>
         <span class="regex regex_literal">
         </span>
         <span class="regex regex_literal">
          i
         </span>
         <span class="regex regex_literal">
          s
         </span>
         <span class="regex regex_literal">
          n
         </span>
         <span class="regex regex_literal">
          '
         </span>
         <span class="regex regex_literal">
          t
         </span>
         <span class="regex regex_literal">
         </span>
         <span class="regex regex_literal">
          i
         </span>
         <span class="regex regex_literal">
          t
         </span>
         <span class="regex regex_literal">
         </span>
         <span class="regex regex_subpattern">
          (
         </span>
         <span class="regex regex_any">
          .
         </span>
         <span class="regex regex_repeat">
          *
         </span>
         <span class="regex regex_subpattern">
          )
         </span>
         <span class="regex regex_literal">
          ?
         </span>
        </code>
       </p>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.regex_demo.no_flags">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.regex_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          no_flags
         </{{ sig_prename_tag }}>
         <a class="headerlink" href="#tests.regex_demo.no_flags" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Pattern" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             Pattern
            </span>
           </code>
          </a>
         </p>
         <p>
          Compiled regular expression object.
         </p>
         <table class="{% if docutils_version < (0, 18) %}colwidths-auto {% endif %}docutils align-default">
          <tbody>
           <tr class="row-odd">
            <th class="stub">
             <p>
              <strong>
               Pattern
              </strong>
             </p>
            </th>
            <td>
             <p>
              <code class="docutils literal notranslate regex">
               <span class="regex regex_literal">
                H
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_category">
                \s
               </span>
               <span class="regex regex_repeat">
                +
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                W
               </span>
               <span class="regex regex_literal">
                w
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                d
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                .
               </span>
               <span class="regex regex_literal">
                ,
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_literal">
                L
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
                v
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                y
               </span>
               <span class="regex regex_branch">
                |
               </span>
               <span class="regex regex_literal">
                H
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                i
               </span>
               <span class="regex regex_literal">
                b
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                w
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
                h
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                ,
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                i
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                n
               </span>
               <span class="regex regex_literal">
                '
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                i
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_any">
                .
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
                ?
               </span>
              </code>
             </p>
            </td>
           </tr>
          </tbody>
         </table>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.regex_demo.one_flag">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.regex_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          one_flag
         </{{ sig_prename_tag }}>
         <a class="headerlink" href="#tests.regex_demo.one_flag" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Pattern" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             Pattern
            </span>
           </code>
          </a>
         </p>
         <p>
          Compiled regular expression object.
         </p>
         <table class="{% if docutils_version < (0, 18) %}colwidths-auto {% endif %}docutils align-default">
          <tbody>
           <tr class="row-odd">
            <th class="stub">
             <p>
              <strong>
               Pattern
              </strong>
             </p>
            </th>
            <td>
             <p>
              <code class="docutils literal notranslate regex">
               <span class="regex regex_literal">
                H
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_category">
                \s
               </span>
               <span class="regex regex_repeat">
                +
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                W
               </span>
               <span class="regex regex_literal">
                w
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                d
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                .
               </span>
               <span class="regex regex_literal">
                ,
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_literal">
                L
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
                v
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                y
               </span>
               <span class="regex regex_branch">
                |
               </span>
               <span class="regex regex_literal">
                H
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                i
               </span>
               <span class="regex regex_literal">
                b
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                w
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
                h
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                ,
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                i
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                n
               </span>
               <span class="regex regex_literal">
                '
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                i
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_any">
                .
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
                ?
               </span>
              </code>
             </p>
            </td>
           </tr>
           <tr class="row-even">
            <th class="stub">
             <p>
              <strong>
               Flags
              </strong>
             </p>
            </th>
            <td>
             <p>
              <a class="reference external" href="https://docs.python.org/3/library/re.html#re.IGNORECASE" title="(in Python v3.14)">
               <code class="xref py py-data docutils literal notranslate">
                <span class="pre">
                 re.IGNORECASE
                </span>
               </code>
              </a>
             </p>
            </td>
           </tr>
          </tbody>
         </table>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.regex_demo.two_flags">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.regex_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          two_flags
         </{{ sig_prename_tag }}>
         <a class="headerlink" href="#tests.regex_demo.two_flags" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Pattern" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             Pattern
            </span>
           </code>
          </a>
         </p>
         <p>
          Compiled regular expression object.
         </p>
         <table class="{% if docutils_version < (0, 18) %}colwidths-auto {% endif %}docutils align-default">
          <tbody>
           <tr class="row-odd">
            <th class="stub">
             <p>
              <strong>
               Pattern
              </strong>
             </p>
            </th>
            <td>
             <p>
              <code class="docutils literal notranslate regex">
               <span class="regex regex_literal">
                H
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_category">
                \s
               </span>
               <span class="regex regex_repeat">
                +
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                W
               </span>
               <span class="regex regex_literal">
                w
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                d
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                .
               </span>
               <span class="regex regex_literal">
                ,
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_literal">
                L
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
                v
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                y
               </span>
               <span class="regex regex_branch">
                |
               </span>
               <span class="regex regex_literal">
                H
               </span>
               <span class="regex regex_literal">
                o
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                i
               </span>
               <span class="regex regex_literal">
                b
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                w
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
                h
               </span>
               <span class="regex regex_literal">
                e
               </span>
               <span class="regex regex_literal">
                r
               </span>
               <span class="regex regex_literal">
                ,
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                i
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                n
               </span>
               <span class="regex regex_literal">
                '
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                i
               </span>
               <span class="regex regex_literal">
                t
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_any">
                .
               </span>
               <span class="regex regex_repeat">
                *
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                ?
               </span>
              </code>
             </p>
            </td>
           </tr>
           <tr class="row-even">
            <th class="stub">
             <p>
              <strong>
               Flags
              </strong>
             </p>
            </th>
            <td>
             <p>
              <a class="reference external" href="https://docs.python.org/3/library/re.html#re.ASCII" title="(in Python v3.14)">
               <code class="xref py py-data docutils literal notranslate">
                <span class="pre">
                 re.ASCII
                </span>
               </code>
              </a>
             </p>
            </td>
           </tr>
          </tbody>
         </table>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.regex_demo.backticks">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.regex_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          backticks
         </{{ sig_prename_tag }}>
         <a class="headerlink" href="#tests.regex_demo.backticks" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Pattern" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             Pattern
            </span>
           </code>
          </a>
         </p>
         <p>
          Compiled regular expression object.
         </p>
         <table class="{% if docutils_version < (0, 18) %}colwidths-auto {% endif %}docutils align-default">
          <tbody>
           <tr class="row-odd">
            <th class="stub">
             <p>
              <strong>
               Pattern
              </strong>
             </p>
            </th>
            <td>
             <p>
              <code class="docutils literal notranslate regex">
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                p
               </span>
               <span class="regex regex_literal">
                y
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                c
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                `
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                0
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                9
               </span>
               <span class="regex regex_literal">
                .
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_repeat">
                +
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
                `
               </span>
              </code>
             </p>
            </td>
           </tr>
          </tbody>
         </table>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.regex_demo.leading_whitespace">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.regex_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          leading_whitespace
         </{{ sig_prename_tag }}>
         <a class="headerlink" href="#tests.regex_demo.leading_whitespace" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Pattern" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             Pattern
            </span>
           </code>
          </a>
         </p>
         <p>
          Compiled regular expression object.
         </p>
         <table class="{% if docutils_version < (0, 18) %}colwidths-auto {% endif %}docutils align-default">
          <tbody>
           <tr class="row-odd">
            <th class="stub">
             <p>
              <strong>
               Pattern
              </strong>
             </p>
            </th>
            <td>
             <p>
              <code class="docutils literal notranslate regex">
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_literal">
                3
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                p
               </span>
               <span class="regex regex_literal">
                y
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                c
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                `
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                0
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                9
               </span>
               <span class="regex regex_literal">
                .
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_repeat">
                +
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
                `
               </span>
              </code>
             </p>
            </td>
           </tr>
          </tbody>
         </table>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.regex_demo.trailing_whitespace">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.regex_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          trailing_whitespace
         </{{ sig_prename_tag }}>
         <a class="headerlink" href="#tests.regex_demo.trailing_whitespace" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Pattern" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             Pattern
            </span>
           </code>
          </a>
         </p>
         <p>
          Compiled regular expression object.
         </p>
         <table class="{% if docutils_version < (0, 18) %}colwidths-auto {% endif %}docutils align-default">
          <tbody>
           <tr class="row-odd">
            <th class="stub">
             <p>
              <strong>
               Pattern
              </strong>
             </p>
            </th>
            <td>
             <p>
              <code class="docutils literal notranslate regex">
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                p
               </span>
               <span class="regex regex_literal">
                y
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                c
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                `
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                0
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                9
               </span>
               <span class="regex regex_literal">
                .
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_repeat">
                +
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
                `
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_literal">
                3
               </span>
              </code>
             </p>
            </td>
           </tr>
          </tbody>
         </table>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.regex_demo.single_whitespace">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.regex_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          single_whitespace
         </{{ sig_prename_tag }}>
         <a class="headerlink" href="#tests.regex_demo.single_whitespace" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Pattern" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             Pattern
            </span>
           </code>
          </a>
         </p>
         <p>
          Compiled regular expression object.
         </p>
         <table class="{% if docutils_version < (0, 18) %}colwidths-auto {% endif %}docutils align-default">
          <tbody>
           <tr class="row-odd">
            <th class="stub">
             <p>
              <strong>
               Pattern
              </strong>
             </p>
            </th>
            <td>
             <p>
              <code class="docutils literal notranslate regex">
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                p
               </span>
               <span class="regex regex_literal">
                y
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                c
               </span>
               <span class="regex regex_literal">
                l
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                s
               </span>
               <span class="regex regex_literal">
                :
               </span>
               <span class="regex regex_literal">
                `
               </span>
               <span class="regex regex_subpattern">
                (
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
                A
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                Z
               </span>
               <span class="regex regex_literal">
                a
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                z
               </span>
               <span class="regex regex_literal">
                0
               </span>
               <span class="regex regex_at">
                -
               </span>
               <span class="regex regex_literal">
                9
               </span>
               <span class="regex regex_literal">
                .
               </span>
               <span class="regex regex_literal">
                _
               </span>
               <span class="regex regex_in">
                ]
               </span>
               <span class="regex regex_repeat">
                +
               </span>
               <span class="regex regex_subpattern">
                )
               </span>
               <span class="regex regex_literal">
                `
               </span>
               <span class="regex regex_in">
                [
               </span>
               <span class="regex regex_literal">
               </span>
               <span class="regex regex_in">
                ]
               </span>
              </code>
             </p>
            </td>
           </tr>
          </tbody>
         </table>
        </dd>
       </dl>
      </div>{% if sphinx_version >= (8, 1) %}
      <div class="clearer">
      </div>{% endif %}
     </div>
    </div>
   </div>
   <div class="clearer">
   </div>
  </div>
 </body>
</html>
