FIX: Use %r for regular expressions matching

Signed-off-by: Patrick Meier <patrick.meier111@googlemail.com>