I have a simple question that I can workaround, but I'd like to find the Pythonic way of doing it. I'm using Python 3.1.2. re.match() will return a match object if the regex is found and None if not.
How to use the regular expression functions provided by the ‘re’ library to match, search, and replace text in your Python programs. Regular expressions, or “regex,” is a system for finding complex ...