Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c13adfe

Browse files
committed
Regex
1 parent 23f0b7a commit c13adfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ import re
360360
<iter> = re.finditer(<regex>, text) # Returns all occurrences as match objects.
361361
```
362362

363-
* **Argument 'new' can be a function that accepts a match and returns a string.**
363+
* **Argument 'new' can be a function that accepts a match object and returns a string.**
364364
* **Search() and match() return None if they can't find a match.**
365365
* **Argument `'flags=re.IGNORECASE'` can be used with all functions.**
366366
* **Argument `'flags=re.MULTILINE'` makes `'^'` and `'$'` match the start/end of each line.**

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
</code></pre></div>
341341

342342
<ul>
343-
<li><strong>Argument 'new' can be a function that accepts a match and returns a string.</strong></li>
343+
<li><strong>Argument 'new' can be a function that accepts a match object and returns a string.</strong></li>
344344
<li><strong>Search() and match() return None if they can't find a match.</strong></li>
345345
<li><strong>Argument <code class="python hljs"><span class="hljs-string">'flags=re.IGNORECASE'</span></code> can be used with all functions.</strong></li>
346346
<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>

0 commit comments

Comments
 (0)