[Tutor] advice on regex matching for dates?
john at fouhy.net
Thu Dec 11 23:45:56 CET 2008
On 12/12/2008, spir <denis.spir at free.fr> wrote:
> I just found a simple, but nice, trick to make regexes less unlegible.
> Using substrings to represent sub-patterns. E.g. instead of:
Another option is to use the re.VERBOSE flag. This allows you to put
comments in your regular expression and use whitespace for formatting.
See this article for an example:
More information about the Tutor