Regular Expressions 101

Sponsors

Library entries

0
javascript

Only numbers and length 9

Only numbers and length 9
Submitted by anonymous - a month ago
0
python

Validate time in 24hs format

Validate time in 24hs format
Submitted by anonymous - a month ago
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
pcre

Filtro Página web

Filtro pagina web
Submitted by anonymous - a month ago
0
pcre

Whatsapp group message id

Whatsapp group message id
Submitted by anonymous - a month 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