加载中...
  1. Home
  2. Computing & Technology
  3. Python

Python RegEx Examples

Here is a glossary of symbols and phrases that you can use when forming regular expressions in Python.
. | ^ | $ | * | + | ? | *? | +? | ?? | {m} | {m,n} | {m,n}? | \ | [] | | | (..) | (?iLmsux) | (?:..) | (?P<name>..) | (?P=name) | (?#..) | (?=..) | (?!..) | (?<=..) | (?<!..) | \A | \b | \B | \d | \D | \s | \S | \w | \W | \Z
  1. Character Markers (3)
  2. Compound Regex (6)
  3. Escape Sequences (11)
  4. Grouping and Alternating (3)
  5. Parenthetical Compounds (8)
  6. String Locations (2)
  1. Home
  2. Computing & Technology
  3. Python
  4. Regular Expressions
  5. Python RegEx Examples

©2011 About.com. All rights reserved. 

A part of The New York Times Company.