1. Home
  2. Computing & Technology
  3. Python

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

From , former About.com Guide

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.