1. Home
  2. Computing & Technology
  3. Python

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

From , former About.com Guide

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.

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 - How Did the Python Eat the String? One Byte at a Time

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

All rights reserved.