HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
learnbyexample
py_regular_expressions
Python2019–2023
learnbyexample / py_regular_expressions

py_regular_expressions

Learn Python Regular Expressions step by step from beginner to advanced levels

2Distinct people
14Mentions
0Explicit recommenders
1.8KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Learn Python Regular Expressions step by step from beginner to advanced levels

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year14 dated mentions

Observed mentions: 2019-01-12 14:42:01 UTC to 2023-03-21 12:25:40 UTC.

02462019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 7 mentions; 2 submissions, 5 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2023

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC220
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC202
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC725
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC202
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC110

What Hacker News says

14 sources
asicsp·Mar 21, 2023Submission

Show HN: Interactive Exercises for Python Regular Expressions

This new version is a TUI app built with Textual. Previous one was written using `tkinter` [0] and covered only four of the `re` functions. Now, any valid Python expression is accepted as a solution. There are more than 100 exercises covering both the builtin `re` module and the third-party `regex` module. These exercises have been adapted from my Understanding Python re(gex)? ebook [1] (free to read online, and PDF/EPUB versions are free till the end of this month). See [2] for a video demo. I'd appreciate your feedback, happy learning :) [0] https://news.ycombinator.com/item?id=29391107 [1] https://github.com/learnbyexample/py_regular_expressions [2] https://youtu.be/0oXPeF8HutQ
3 points · Open discussion
My book (https://github.com/learnbyexample/py_regular_expressions) is for complete newbies to regex, provided they know the basics of Python. At the end of each chapter, there are exercises to test your understanding of concepts presented until that chapter. These interactive exercises cover about 70% of the exercises from the book, meant for beginner to intermediate level programmers. There are a few tricky exercises, but overall the idea is to help you get comfortable with regex syntax and features.
In Show HN: Improve your Python regex skills with 75 interactive exercises
Hello! I wrote a GUI app written in `tkinter` to help you practice Python regular expressions. Total 75 questions on `re.search`, `re.sub`, `re.split` and `re.findall` that'll test your understanding of anchors, alternation, grouping, escaping metacharacters, dot metacharacter, quantifiers, character class, grouping, lookarounds, flags, etc. These exercise questions have been adapted from my "Python re(gex)?" ebook (free to read online [0]). See Exercises.md [1] for all the exercise questions from this book. I'd appreciate your feedback :) [0] https://learnbyexample.github.io/py_regular_expressions/ [1] https://github.com/learnbyexample/py_regular_expressions/blo...
In Show HN: Improve your Python regex skills with 75 interactive exercises
Hello! I wrote a GUI app written in tkinter to help you practice Python regular expressions. Total 75 questions on `re.search`, `re.sub`, `re.split` and `re.findall` that'll test your understanding of anchors, alternation, grouping, escaping metacharacters, dot metacharacter, quantifiers, character class, grouping, lookarounds, flags, etc. These exercise questions have been adapted from my "Python re(gex)?" ebook (free to read online [0]). See Exercises.md [1] for all the exercise questions from this book. I'd appreciate your feedback :) [0] https://learnbyexample.github.io/py_regular_expressions/ [1] https://github.com/learnbyexample/py_regular_expressions/blo...
In Show HN: Interactive Exercises for Python Regex
Thank you for sharing your work! It looks quite wide-ranging and in depth. For others, clickable links: https://github.com/learnbyexample/learn_js_regexp https://learnbyexample.github.io/books/ --- I love that you provide the books in a single-file Markdown format. JavaScript Regular Expressions - https://github.com/learnbyexample/learn_js_regexp/blob/maste... Python Regular Expressions - https://github.com/learnbyexample/py_regular_expressions/blo...
In Show HN: JavaScript regexp eBook with hundreds of examples and exercises
asicsp·Aug 8, 2019Submission

Show HN: I wrote a book on Python regular expressions

My book titled "Python re(gex)?" is free to download through this weekend [1][2] The book covers both 're' and 'regex' modules, has plenty of examples and chapters also have cheatsheets and exercises. Code snippets, exercises, sample chapters, etc are available on GitHub repo [3] I used pandoc+xelatex [4] to generate the pdf. [1] https://gumroad.com/l/py_regex [2] https://leanpub.com/py_regex [3] https://github.com/learnbyexample/py_regular_expressions [4] https://learnbyexample.github.io/tutorial/ebook-generation/customizing-pandoc/
193 points · Open discussion
asicsp·Jan 12, 2019Submission

Tell HN: I wrote an ebook on Python regex, free to download this weekend

Hello! My book on Python Regular Expressions is free to download this weekend. You can still pay if you wish :) e-book[1] (you will continue to get free updates in future, you'll need to opt-in to get notification via e-mail) github[2] This book would help you learn regular expressions step by step with 200+ examples, from basics to advanced levels. In addition to re module that comes with standard library, the 3rd party regex module is covered as well. Exercises are also included to test your understanding. Table of Contents 1. Preface 2. Why is it needed? 3. Regular Expression modules 4. Anchors 5. Alternation and Grouping 6. Escaping metacharacters 7. Dot metacharacter and Quantifiers 8. Working with matched portions 9. Character class 10. Groupings and backreferences 11. Lookarounds 12. Flags 13. Unicode 14. Miscellaneous 15. Gotchas
Read the rest
16. Further Reading Hope you find the book useful. I would be grateful for your feedback and suggestions. Happy learning :) [1] https://leanpub.com/py_regex/c/P7erPYAm1386 [2] https://github.com/learnbyexample/py_regular_expressions
2 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.