commit using proper regex preg_matching