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
Copy file name to clipboardExpand all lines: index.html
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -469,7 +469,8 @@
469
469
<li><strong>Search() and match() return None if they can't find a match.</strong></li>
470
470
<li><strong>Argument <codeclass="python hljs"><spanclass="hljs-string">'flags=re.IGNORECASE'</span></code> can be used with all functions.</strong></li>
471
471
<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>
472
-
<li><strong>Argument <codeclass="python hljs"><spanclass="hljs-string">'flags=re.DOTALL'</span></code> makes dot also accept newline.</strong></li>
472
+
<li><strong>Argument <codeclass="python hljs"><spanclass="hljs-string">'flags=re.DOTALL'</span></code> makes dot also match the newline.</strong></li>
473
+
<li><strong>Only character that is considered a line separator is <codeclass="python hljs"><spanclass="hljs-string">'\n'</span></code>.</strong></li>
473
474
<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>
474
475
<li><strong>Add <codeclass="python hljs"><spanclass="hljs-string">'?'</span></code> after an operator to make it non-greedy.</strong></li>
475
476
</ul>
@@ -1459,7 +1460,7 @@
1459
1460
1460
1461
<pre><codeclass="python language-python hljs"><str> = getcwd() <spanclass="hljs-comment"># Returns the current working directory.</span>
1461
1462
<str> = path.join(<path>, ...) <spanclass="hljs-comment"># Joins two or more pathname components.</span>
1462
-
<str> = path.abspath(<path>) <spanclass="hljs-comment"># Return an absolute path.</span>
1463
+
<str> = path.abspath(<path>) <spanclass="hljs-comment"># Returns an absolute path.</span>
1463
1464
</code></pre>
1464
1465
<pre><codeclass="python language-python hljs"><str> = path.basename(<path>) <spanclass="hljs-comment"># Returns final component.</span>
1465
1466
<str> = path.dirname(<path>) <spanclass="hljs-comment"># Returns path without final component.</span>
0 commit comments