adding ability to add only latest of regex branch name