commits using proper regex