Regular Expressions 101

Sponsors

Library entries

0
golang

Date String ISO Pattern

Date String ISO Pattern matcher
Submitted by Lucas Morais - a month ago
0
python

OCP typedef name

Match to ocpCamelCase Name[Ptr]
Submitted by Xiaoxing Cheng - a month ago
0
javascript

vue sfc script tag

Regexp to match vue sfc script tag
Submitted by YuTengjing - a month ago
0
java

TatraBanka AMOUNT_VALUE

some descriptoin
Submitted by Inez van Acker, Robert Schulz - a month ago
0
java

email valid

email validation
Submitted by Hoot - 2 months ago
0
python

netstat

Активные соединения
Submitted by anonymous - 2 months ago
0
python

Driverquery

Установленные драйвера
Submitted by anonymous - 2 months ago
0
python

Assoc

Разбивает вывод команды Assoc
Submitted by anonymous - 2 months ago

Docker image tag with named groups

Vote

1

Regular Expression
javascript

/
^(:(=[^:\/]{4,253})(?!-)[a-zA-Z0-9-]{1,63}(?<!-)(?:\.(?!-)[a-zA-Z0-9-]{1,63}(?<!-))*(?::[0-9]{1,5})?\/)?(?<image>(?![._-])(?:(?:[a-z0-9._-]*(?::[0-9]{1,5})?))(?<![._-])(?:\/(?![._-])[a-z0-9._-]*(?<![._-]))*)(?:(?<tag>(?::(?![.-])[a-zA-Z0-9_.-]{1,128}))|(?<sha>@sha256:[0-9a-f]{64}))?$
/

Description

Loading markdown...
Submitted by petersamokhin with help from https://stackoverflow.com/questions/39671641 - 3 months ago