Skip to content

Commit 603ad85

Browse files
committed
String
1 parent 6914378 commit 603ad85

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ String
344344
| isdecimal() | | | | | yes |
345345
+---------------+----------+----------+----------+----------+----------+
346346
```
347-
* **Also: `'isspace()'` checks for `'[ \t\n\r…]'`.**
347+
* **Also: `'isspace()'` checks for `'[ \t\n\r\f\v…]'`.**
348348

349349

350350
Regex
@@ -380,7 +380,7 @@ import re
380380
* **Use capital letter for negation.**
381381
```python
382382
'\d' == '[0-9]' # Matches any digit.
383-
'\s' == '[ \t\n\r\f\v]' # Matches any whitespace.
383+
'\s' == '[ \t\n\r\f\v…]' # Matches any whitespace.
384384
'\w' == '[a-zA-Z0-9_]' # Matches any alphanumeric.
385385
```
386386

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@
454454
</code></pre></div>
455455

456456
<ul>
457-
<li><strong>Also: <code class="python hljs"><span class="hljs-string">'isspace()'</span></code> checks for <code class="python hljs"><span class="hljs-string">'[ \t\n\r…]'</span></code>.</strong></li>
457+
<li><strong>Also: <code class="python hljs"><span class="hljs-string">'isspace()'</span></code> checks for <code class="python hljs"><span class="hljs-string">'[ \t\n\r\f\v…]'</span></code>.</strong></li>
458458
</ul>
459459
<div><h2 id="regex"><a href="#regex" name="regex">#</a>Regex</h2><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> re
460460
&lt;str&gt; = re.sub(&lt;regex&gt;, new, text, count=<span class="hljs-number">0</span>) <span class="hljs-comment"># Substitutes all occurrences with 'new'.</span>
@@ -484,7 +484,7 @@
484484
<li><strong>By default digits, whitespaces and alphanumerics from all alphabets are matched, unless <code class="python hljs"><span class="hljs-string">'flags=re.ASCII'</span></code> argument is used.</strong></li>
485485
<li><strong>Use capital letter for negation.</strong></li>
486486
</ul><pre><code class="python language-python hljs"><span class="hljs-string">'\d'</span> == <span class="hljs-string">'[0-9]'</span> <span class="hljs-comment"># Matches any digit.</span>
487-
<span class="hljs-string">'\s'</span> == <span class="hljs-string">'[ \t\n\r\f\v]'</span> <span class="hljs-comment"># Matches any whitespace.</span>
487+
<span class="hljs-string">'\s'</span> == <span class="hljs-string">'[ \t\n\r\f\v]'</span> <span class="hljs-comment"># Matches any whitespace.</span>
488488
<span class="hljs-string">'\w'</span> == <span class="hljs-string">'[a-zA-Z0-9_]'</span> <span class="hljs-comment"># Matches any alphanumeric.</span>
489489
</code></pre></div>
490490

0 commit comments

Comments
 (0)