Regular Expressions

While C's printf-style output formats, transformed into Python, are adequate for most output formatting jobs, C's scanf-style input formats are not very powerful. Instead of scanf-style input, Python offers Emacs-style regular expressions as a powerful input and scanning mechanism. Read the corresponding section in the Library Reference for a full description.