Generates a python file "FILE" with a function "matches" that takes in a string and returns true if the regular expression "PATTERN" matches the entire string.
Usage: regex.py PATTERN FILE regex.py --test
Note that this was primarily a learning experience for me, and so the supported subset of regular expressions is extremely limited. Accordingly, and given that the generated code is not at all efficient, this program is not suitable for practical use.