Regular Expressions 101

Sponsors

Library entries

0
java

date dd.mm.yyyy

Date format dd.mm.yyyy
Submitted by anonymous - 2 months ago
0
javascript

Matches filenames in urls

Filenames in urls
Submitted by anonymous - 2 months ago
0
java

partnkey value

Extract value partn_key
Submitted by anonymous - 2 months ago
0
javascript

sql inj

as
Submitted by anonymous - 2 months ago
0
golang

super regex

Get every word ending with dot using Regex/VBA
Submitted by anonymous - 2 months ago
0
java

Identifier Regex

Regex for identifiers
Submitted by anonymous - 2 months ago
0
javascript

Currency

Currency
Submitted by jerryd - 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