You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<iter> = re.finditer(<regex>, text) <spanclass="hljs-comment"># Returns all occurrences as match objects.</span>
442
442
</code></pre>
443
443
<ul>
444
-
<li><strong>Parameter<codeclass="python hljs"><spanclass="hljs-string">'flags=re.IGNORECASE'</span></code> can be used with all functions.</strong></li>
445
-
<li><strong>Parameter<codeclass="python hljs"><spanclass="hljs-string">'flags=re.DOTALL'</span></code> makes dot also accept newline.</strong></li>
444
+
<li><strong>Argument<codeclass="python hljs"><spanclass="hljs-string">'flags=re.IGNORECASE'</span></code> can be used with all functions.</strong></li>
445
+
<li><strong>Argument<codeclass="python hljs"><spanclass="hljs-string">'flags=re.DOTALL'</span></code> makes dot also accept newline.</strong></li>
446
446
<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>
447
447
<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>
455
455
</code></pre>
456
456
<h3id="specialsequences">Special Sequences</h3>
457
-
<p><strong>Expressions below hold true for strings that contain only ASCII characters. Use capital letters for negation.</strong></p>
457
+
<ul>
458
+
<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>
459
+
<li><strong>Use capital letters for negation.</strong></li>
0 commit comments