1. Home
  2. Computing & Technology
  3. Python

Python Regular Expressions (regex): The Question Mark ('?')

By Al Lukaszewski, About.com

Definition:

The question mark matches either 0 or 1 characters -- effectively a single slot within memory. For more on slots within memory and how strings are saved, see "Python Strings Along Dogs and Cats".


Back to the main index of this glossary

Explore Python

More from About.com

  1. Home
  2. Computing & Technology
  3. Python
  4. Regular Expressions
  5. Python RegEx Glossary
  6. Character Markers
  7. Python Regular Expressions (regex): The Question Mark ('?')

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

All rights reserved.