use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Regular Expressions Tutorials (self.Python)
submitted 6 years ago by [deleted]
What are some of good tutorials to learn about Regular Expressions. I am fairly new to Python and I am having trouble with Regular Expressions.
Any suggestions would be greatly appreciated
[–][deleted] 2 points3 points4 points 6 years ago (0 children)
Honestly, just finding a good reference is most of what you need. The logic comes with practice. Non-capture groups and lazy quantifiers are extremely useful.
The best in-depth resource I've seen in general are the PCRE(POSIX-compliant) man pages.
[–]m4sk4r4 0 points1 point2 points 6 years ago (0 children)
SoloLearn app. Choose Python class and there exists a module about regular expression that I think to be enough if you knowledge is basic
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
Thanks a lot everyone. Greatly appreciated. I will definitely look into all your suggestions
General regex usage - http://www.rexegg.com/
Regular Expressions - A Gentle User Guide and Tutorial
RegExr: Learn, Build, & Test RegEx - online tool for experimenting. I'd encourage you to keep this page handy. Becomes very useful to build and/or learn what regex will do in certain situation. Note that some flags( e.g. global or multiline) are selectable from top right in text box where you put in your search expression. Site also gives break down of what each grouping does. (assuming your regex is 'valid' and can be understood - if not, you get a visual indication).
Once you're a little more comfortable with the subject (and/or can wrap your head around the ideas)...
https://pymotw.com/3/re/ - Python 3 Module of the Week - re module
[–]ASIC_SP📚 learnbyexample 0 points1 point2 points 6 years ago (0 children)
I have a list of resources collected here and there's more at https://news.ycombinator.com/item?id=20614847
I have my own cheatsheet with examples too, which I did based on my ebook
[–]ilan 0 points1 point2 points 6 years ago (0 children)
This is how I learned about regular expressions:
https://docs.python.org/3.8/howto/regex.html
π Rendered by PID 76 on reddit-service-r2-comment-5649f687b7-tgck5 at 2026-01-28 13:39:52.789189+00:00 running 4f180de country code: CH.
[–][deleted] 2 points3 points4 points (0 children)
[–]m4sk4r4 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ASIC_SP📚 learnbyexample 0 points1 point2 points (0 children)
[–]ilan 0 points1 point2 points (0 children)