Browse Source

Regex

pull/125/head
Jure Šorn 2 years ago
parent
commit
c13adfeadc
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -360,7 +360,7 @@ import re
<iter> = re.finditer(<regex>, text) # Returns all occurrences as match objects.
```
* **Argument 'new' can be a function that accepts a match and returns a string.**
* **Argument 'new' can be a function that accepts a match object and returns a string.**
* **Search() and match() return None if they can't find a match.**
* **Argument `'flags=re.IGNORECASE'` can be used with all functions.**
* **Argument `'flags=re.MULTILINE'` makes `'^'` and `'$'` match the start/end of each line.**

2
index.html

@ -340,7 +340,7 @@ to_exclusive = &lt;range&gt;.stop
</code></pre></div>
<ul>
<li><strong>Argument 'new' can be a function that accepts a match and returns a string.</strong></li>
<li><strong>Argument 'new' can be a function that accepts a match object and returns a string.</strong></li>
<li><strong>Search() and match() return None if they can't find a match.</strong></li>
<li><strong>Argument <code class="python hljs"><span class="hljs-string">'flags=re.IGNORECASE'</span></code> can be used with all functions.</strong></li>
<li><strong>Argument <code class="python hljs"><span class="hljs-string">'flags=re.MULTILINE'</span></code> makes <code class="python hljs"><span class="hljs-string">'^'</span></code> and <code class="python hljs"><span class="hljs-string">'$'</span></code> match the start/end of each line.</strong></li>

Loading…
Cancel
Save