0

I have a docker image name I have to trim.

Example name:

localhost:8080/mydockerimage-0.0.1:latest

I want to get the first part, till the tag, but without :.

I have written something like this:

.*\:

which partially matches my needs, however the result still ends with : - localhost:8080/mydockerimage-0.0.1:.

How can I unselect the last concurrency of :?

Forin
  • 1,277
  • 1
  • 16
  • 38

0 Answers0