DjangoTricks
  • Tricks
  • Blog
  • Goodies
  • Social
  • Donate
  • Manage Cookies
Random trick ➔

About Regular Expressions

Good regex always takes two lines of code: one for the regex itself, and a second for a comment to explain what the regex does.

Chris Shaver (@ChrisShaver64)

Tips and Tricks Programming Wisdom Python 3 JavaScript Regular Expressions

  • image/svg+xml Share
    on X
  • Share
    on Facebook
  • Share
    on LinkedIn

Also by me

Django Messaging

For Django-based social platforms.

Django App for You
Django Paddle Subscriptions

For Django-based SaaS projects.

Django App for You
Django GDPR Cookie Consent

For Django websites that use cookies.

Django App for You
Django 3 Web Development Cookbook - Fourth Edition
Book for You
Django 3 Web Development Cookbook

Learn how to build practical web projects with Django 3.

1st things 1st
SaaS for You
Online prioritizer "1st things 1st"

It's not for everyone, but it might be for you!

Also about Django