Regular Expressions 101

Community Patterns

Docker Image Repo URL

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<host>[a-z0-9.\-_]+(?<port>:\d+)?\/)?(?<ns>[a-z]+\/)?(?<repo>[a-z\-])+:(?<tag>[\w.\-])+$
/
gmi

Description

This was written for the iTerm2 Smart Selection

Submitted by anonymous - 2 years ago