<iter> = re.finditer(<regex>, text) <spanclass="hljs-comment"># Returns all occurrences as match objects.</span>
<iter> = re.finditer(<regex>, text) <spanclass="hljs-comment"># Returns all occurrences as match objects.</span>
</code></pre>
</code></pre>
<ul>
<ul>
<li><strong>Parameter<codeclass="python hljs"><spanclass="hljs-string">'flags=re.IGNORECASE'</span></code> can be used with all functions.</strong></li>
<li><strong>Parameter<codeclass="python hljs"><spanclass="hljs-string">'flags=re.DOTALL'</span></code> makes dot also accept newline.</strong></li>
<li><strong>Argument<codeclass="python hljs"><spanclass="hljs-string">'flags=re.IGNORECASE'</span></code> can be used with all functions.</strong></li>
<li><strong>Argument<codeclass="python hljs"><spanclass="hljs-string">'flags=re.DOTALL'</span></code> makes dot also accept newline.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">r'\1'</span></code> or <codeclass="python hljs"><spanclass="hljs-string">'\\1'</span></code> for backreference.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">r'\1'</span></code> or <codeclass="python hljs"><spanclass="hljs-string">'\\1'</span></code> for backreference.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'?'</span></code> to make an operator non-greedy.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'?'</span></code> to make an operator non-greedy.</strong></li>
<int> = <Match>.end() <spanclass="hljs-comment"># Exclusive end index of a match.</span>
<int> = <Match>.end() <spanclass="hljs-comment"># Exclusive end index of a match.</span>
</code></pre>
</code></pre>
<h3id="specialsequences">Special Sequences</h3>
<h3id="specialsequences">Special Sequences</h3>
<p><strong>Expressions below hold true for strings that contain only ASCII characters. Use capital letters for negation.</strong></p>
<ul>
<li><strong>By default digits, whitespaces and alphanumerics from all alphabets are matched, unless <codeclass="python hljs"><spanclass="hljs-string">'flags=re.ASCII'</span></code> argument is used.</strong></li>
<li><strong>Use capital letters for negation.</strong></li>