Regular Expressions 101

Community Patterns

Community Library Entry

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 - 3 years ago