Regular Expressions 101

Sponsors

Library entries

1
java

IP Address

(^([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3})$)
Submitted by anonymous - 10 days ago
0
java

Cron Syntax

This checks the syntax for CRON
Submitted by Till Hummel - 24 days ago
0
java

FullName_regex

2135
Submitted by anonymous - a month ago
0
dotnet

Guid parser

Guid parser
Submitted by anonymous - a month ago
0
dotnet

Nepali phone number regex

(\+977)?9\d{8}
Submitted by anonymous - a month ago
0
java

时间

时间
Submitted by 旧信 - a month ago
0
dotnet

No leading or trailing spaces

No leading or trailing spaces
Submitted by anonymous - 2 months ago
0
dotnet

Ipv4 with optional port

ipv4 with optional port
Submitted by anonymous - 2 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 - 9 months ago