A string is a sequence type consisting of of single-character strings (not character types; there is no character type in Python).

The Python string object does not support pattern matching. For this you need the module re.

Sources

Lutz, Mark. Learning Python. Third ed., O’Reilly, 2008. Chapter 4, “Introducing Python Object Types.”