Date: August 9, 2022 Categories: Development Tags: bash, git, regex Comments: 0 git repo path, bash, regex wild card, you have to use a backlash for the period git --git-dir=./.git config --get remote.origin.url | sed -e "s/ssh:\/\/.*\+:\([0-9]\+\|\)\///" Leave a Reply Cancel replyYour email address will not be published.Comment Name Email Website Save my name, email, and website in this browser for the next time I comment.