Regular Expressions 101

Sponsors

Library entries

1
golang

Siebel Id

no description available
Submitted by anonymous - 6 years ago
1
golang

Flexible box

no description available
Submitted by anonymous - 2 years ago
1
golang

Lxx Wurzel

no description available
Submitted by anonymous - 2 years ago
1
golang

lsblk-output-regex

Trying to adapt this regex to support LVM.
Submitted by anonymous - 10 months ago
1
golang

SQL comments Big Query

SQL comments on Big Query
Submitted by anonymous - 9 months ago

Parse Docker image reference components (URI / tag / name / registry / host)

Vote

0

Regular Expression
javascript

/
^(?<Name>(?<=^)(?:(?<Domain>(?:(?:localhost|[\w-]+(?:\.[\w-]+)+)(?::\d+)?)|[\w]+:\d+)\/)?\/?(?<Namespace>(?:(?:[a-z0-9]+(?:(?:[._]|__|[-]*)[a-z0-9]+)*)\/)*)(?<Repo>[a-z0-9-]+))[:@]?(?<Reference>(?<=:)(?<Tag>[\w][\w.-]{0,127})|(?<=@)(?<Digest>[A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][0-9A-Fa-f]{32,}))?
/
gm

Description

Loading markdown...
Submitted by https://github.com/Propolisa - 7 months ago