|
14 | 14 | </div>
|
15 | 15 | </div>
|
16 | 16 |
|
17 |
| -[<< Day 17](../17_Day/17_exception_handling.md) | [Day 19>>](../19_Day/19_file_handling.md) |
| 17 | +[<< Day 17](../17_Day_Exception_handling/17_exception_handling.md) | [Day 19>>](../19_Day_File_handling/19_file_handling.md) |
18 | 18 |
|
19 | 19 | 
|
20 | 20 |
|
21 |
| -- [📘 Day 18](#%f0%9f%93%98-day-18) |
22 |
| - - [Regular Expressions](#regular-expression) |
23 |
| - - [The *re* Module](#The-re-module) |
| 21 | +- [📘 Day 18](#-day-18) |
| 22 | + - [Regular Expressions](#regular-expressions) |
| 23 | + - [The *re* Module](#the-re-module) |
24 | 24 | - [Functions in *re* Module](#functions-in-re-module)
|
25 | 25 | - [Match](#match)
|
26 | 26 | - [Search](#search)
|
27 | 27 | - [Searching for All Matches Using *findall*](#searching-for-all-matches-using-findall)
|
28 |
| - - [Replacing a Substring](#replacing-a-Substring) |
| 28 | + - [Replacing a Substring](#replacing-a-substring) |
29 | 29 | - [Splitting Text Using RegEx Split](#splitting-text-using-regex-split)
|
30 | 30 | - [Writing RegEx Patterns](#writing-regex-patterns)
|
31 |
| - - [Square Brackets](#square-brackets) |
| 31 | + - [Square Bracket](#square-bracket) |
32 | 32 | - [Escape character(\\) in RegEx](#escape-character-in-regex)
|
33 | 33 | - [One or more times(+)](#one-or-more-times)
|
34 | 34 | - [Period(.)](#period)
|
35 | 35 | - [Zero or more times(\*)](#zero-or-more-times)
|
36 |
| - - [Zero or one times(?)](#zero-or-one-times) |
37 |
| - - [Quantifiers in RegEx](#quantifiers-in-regex) |
38 |
| - - [Cart ^](#cart) |
39 |
| - - [💻 Exercises: Day 18](#%f0%9f%92%bb-exercises-day-18) |
| 36 | + - [Zero or one time(?)](#zero-or-one-time) |
| 37 | + - [Quantifier in RegEx](#quantifier-in-regex) |
| 38 | + - [Cart ^](#cart-) |
| 39 | + - [💻 Exercises: Day 18](#-exercises-day-18) |
40 | 40 |
|
41 | 41 |
|
42 | 42 | # 📘 Day 18
|
@@ -375,7 +375,6 @@ matches = re.findall(regex_pattern, txt)
|
375 | 375 | print(matches) # ['6,', '2019.']
|
376 | 376 | ```
|
377 | 377 |
|
378 |
| - |
379 | 378 | ## 💻 Exercises: Day 18
|
380 | 379 |
|
381 | 380 | 1. What is the most frequent word in the following paragraph?
|
@@ -434,8 +433,6 @@ distance = 12
|
434 | 433 | print(most_frequent_words(cleaned_text)) # [(3, 'I'), (2, 'teaching'), (2, 'teacher')]
|
435 | 434 | ```
|
436 | 435 |
|
437 |
| - |
438 |
| - |
439 | 436 | 🎉 CONGRATULATIONS ! 🎉
|
440 | 437 |
|
441 |
| -[<< Day 17](../17_Day/17_exception_handling.md) | [Day 19>>](../19_Day/19_file_handling.md) |
| 438 | +[<< Day 17](../17_Day_Exception_handling/17_exception_handling.md) | [Day 19>>](../19_Day_File_handling/19_file_handling.md) |
0 commit comments