Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d2857b5

Browse files
corrected typos, simpler solution for an exercise
1 parent bcbd9cd commit d2857b5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Learn Python Regular Expressions step-by-step from beginner to advanced levels w
44

55
<p align="center"><img src="./images/py_regex_ls.png" alt="Understanding Python re(gex)? ebook cover image" /></p>
66

7-
The book also includes exercises to test your understanding, which is presented together as a single file in this repo — [Exercises.md](./exercises/Exercises.md)
7+
The book also includes exercises to test your understanding, which are presented together as a single file in this repo — [Exercises.md](./exercises/Exercises.md)
88

99
For solutions to the exercises, see [Exercise_solutions.md](./exercises/Exercise_solutions.md).
1010

@@ -32,9 +32,9 @@ See [Version_changes.md](./Version_changes.md) to keep track of changes made to
3232

3333
For a preview of the book, see [sample chapters](./sample_chapters/py_regex_sample.pdf)
3434

35-
The book can also be [viewed as a single markdown file in this repo](./py_regex.md). See my blogpost on [generating pdf from markdown using pandoc](https://learnbyexample.github.io/customizing-pandoc/) if you are interested in the ebook creation process.
35+
The book can also be [viewed as a single markdown file in this repo](./py_regex.md). See my blogpost on [generating pdfs from markdown using pandoc](https://learnbyexample.github.io/customizing-pandoc/) if you are interested in the ebook creation process.
3636

37-
For web version of the book, visit https://learnbyexample.github.io/py_regular_expressions/
37+
For the web version of the book, visit https://learnbyexample.github.io/py_regular_expressions/
3838

3939
<br>
4040

@@ -50,7 +50,7 @@ For web version of the book, visit https://learnbyexample.github.io/py_regular_e
5050

5151
⚠️ ⚠️ Please DO NOT submit pull requests. Main reason being any modification requires changes in multiple places.
5252

53-
I would highly appreciate if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.
53+
I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.
5454

5555
You can reach me via:
5656

@@ -107,7 +107,7 @@ Special thanks to Al Sweigart. His [Automate the Boring Stuff](https://automatet
107107

108108
# License
109109

110-
The book is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/)
110+
The book is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/).
111111

112-
The code snippets are licensed under MIT, see [LICENSE](./LICENSE) file
112+
The code snippets are licensed under MIT, see [LICENSE](./LICENSE) file.
113113

‎exercises/Exercise_solutions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ took 22
10831083
```ruby
10841084
>>> ip = 'wow:Good:2_two.five: hi-2 bye kite.777:water.'
10851085

1086-
>>> re.sub(r'(\w+)[:.](\w+[:.])+', r'1円', ip)
1086+
>>> re.sub(r'([:.]\w*)+', '', ip)
10871087
'wow hi-2 bye kite'
10881088
```
10891089

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /