1. Home
  2. Computing & Technology
  3. Python

Python Regular Expressions (regex): Forming a Regular Expression in Python

From Al Lukaszewski, for About.com

1 of 10

Half the Battle: How Python Understand Regular Expressions

Half the battle in writing a good regular expression (regex) is understanding how the computer -- not just the Python interpreter -- reads it. The basic process for understanding this has three parts to it:

  1. Understanding how a computer reads and recognizes character strings in general
  2. Understanding how it understands meta-characters and regular expression symbols
  3. Understanding how to combine those characters and symbols into meaningful expressions to match a group of strings
Explore Python
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Python
  4. Regular Expressions
  5. Python Regular Expressions - Python Regex - Forming a Regular Expression in Python

©2009 About.com, a part of The New York Times Company.

All rights reserved.