<li><strong>Search() and match() return None if they can't find a match.</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.MULTILINE'</span></code> makes <codeclass="python hljs"><spanclass="hljs-string">'^'</span></code> and <codeclass="python hljs"><spanclass="hljs-string">'$'</span></code> match the start/end of each line.</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>Argument <codeclass="python hljs"><spanclass="hljs-string">'flags=re.DOTALL'</span></code> makes dot also match the newline.</strong></li>
<li><strong>Only character that is considered a line separator is <codeclass="python hljs"><spanclass="hljs-string">'\n'</span></code>.</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>Add <codeclass="python hljs"><spanclass="hljs-string">'?'</span></code> after an operator to make it non-greedy.</strong></li>
</ul>
@ -1459,7 +1460,7 @@ value = args.<name>
<pre><codeclass="python language-python hljs"><str> = getcwd() <spanclass="hljs-comment"># Returns the current working directory.</span>
<str> = path.join(<path>, ...) <spanclass="hljs-comment"># Joins two or more pathname components.</span>
<str> = path.abspath(<path>) <spanclass="hljs-comment"># Return an absolute path.</span>
<str> = path.abspath(<path>) <spanclass="hljs-comment"># Returns an absolute path.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><str> = path.basename(<path>) <spanclass="hljs-comment"># Returns final component.</span>
<str> = path.dirname(<path>) <spanclass="hljs-comment"># Returns path without final component.</span>