Regular Expressions 101

Library entries

Docker Image Tag Parsing

Vote

0

Regular Expression
python

"
^(?P<repository>[\w.\-_]+((?::\d+|)(?=/[a-z0-9._-]+/[a-z0-9._-]+))|)(?:/|)(?P<image>[a-z0-9.\-_]+(?:/[a-z0-9.\-_]+|))(:(?P<tag>[\w.\-_]{1,127})|)$
"
gmi

Description

Loading markdown...
Submitted by anonymous - 4 years ago