capture group or operator

echo ssh://git@gitlab.com:/werm-wa/apps-ithacabball.git | sed -e “s/ssh:\/\/.*\+:\([0-9]\+\|\)\///”

\([0-9]\+\|\)

you have to put back slashes on sed markup

Leave a Reply

Your email address will not be published.