r1chardj0n3s/parse — pull request #6 by Byron (2012-09-24 10:05:37+00:00)
Title: Dot separated fields support

Added support for named fields that contain the '.' character.

Its part of the format() syntax to allow the getattr syntax, which make names like 'hello.world' possible. Previously it would try to use the named field as a regex group name, which did not work as anything but a-zA-Z0-9_ seem to be forbidden characters.

The issue is solved by temporarily replacing the forbidden characters with a character sequence that is not, and converting the group name back once the result is prepared.

A test was added to verify the feature.

Additionally, regular expression compile-failures are now handled more gracefully.