Scroll down to the "Module Contents" section of this page: https://docs.python.org/2/library/re.html It explains re.M and other "constants". Skip