1. Home
  2. Computing & Technology
  3. Python

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

By Al Lukaszewski, About.com

3 of 10

How Did the Python Eat the String? One Byte at a Time

The string 'dog' with word boundaries highlighted.

The string 'dog' with word boundaries highlighted.

A Lukaszewski

Beyond the null value the computer notices all of the incremental locations which we as human readers seldom, if ever, think about. Perhaps the two most common of these are the spots immediately before and after a string's value. In this image, those two spots are highlighted in red.

Next we look at how Python views two words in one string.

3 of 10

Explore Python

More from About.com

  1. Home
  2. Computing & Technology
  3. Python
  4. Regular Expressions
  5. Python Regular Expressions - Python Regex - How Did the Python Eat the String? One Byte at a Time

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

All rights reserved.