1. Computing

Regular Expressions

Many regular expressions will carry into Python from other langauges without much fuss. To realize the potential of Python, however, you should know the expressions peculiar to this powerful langauge.
  1. Python RegEx Examples (39)
  2. Python RegEx Glossary (28)

What is a Regular Expression?
Regular expressions are a Python programmer's best friend. Understanding what they are and how to use them will help you leap tall programming tasks in a single bound.

Python Regular Expressions: The Basics
Every successful Python programmer understands Python's regular expression (regex) system and how to formulate regular expressions for matching. Here is how you can do it.

Regular Expressions: A Primer
This primer offers a concise discussion of the regular expression syntax used in Python. If you need a reference, this will be helpful.

Pythons 're' Module Functions
Python's re module is without a doubt one of the most commonly used parts of the Python library. Remember its functions, on the other hand, is not always easy. Here As always, it is always better to know all of the tools at your disposal when you code.

Regular Expression Objects
Using regular expressions is a fundamental skill in any programming, not just Python. Here are the methods and attributes available for working with regular expression objects.

Python RegEx: A Slightly Longer Primer
This primer by Robin Parmar offers an excellent, fast-paced discussion on the regex module and Python regular expressions in general. There are examples for just about every element in Python's regex vocabulary.

Dive Into Regular Expressions
This chapter out of Mark Pilgrim's "Dive Into Python" offers a slower-paced discussion of how to use regular expressions in Python. If Robin Parmar's discussion was too quick, you may benefit from reading this chapter.

The re Module
For the language lawyers, this page offers a full discussion of the re module, what it offers, and how to use it.

Regular Expressions: Just the Basics
If you still find yourself absolutely lost about what regular expressions are and how to use them, you may find this page from the University of Kentucky helpful. Don't let the fact that it is on the site of the classics and not computer science department fool you, this discussion helps to solidify your foundation in using regular expressions.

©2013 About.com. All rights reserved.