Implemented branch regex