On 14.09.16 11:28, Steven D'Aprano wrote:
I'm not sure if it makes sense to talk about an "empty regular expression", or if that is the same as re.compile(''). Presumably if such a thing makes sense, it would match nothing, from any input at all.
Actually, it matches anything. re.compile('').match(x) returns non-false value for any valid x.
-- https://mail.python.org/mailman/listinfo/python-list