Regular Expressions 101

Sponsors

Library entries

0
python

datecheck

expression pour checker les dates
Submitted by anonymous - a month ago
0
python

extract data syslog format

Extract data of syslog.log format
Submitted by anonymous - a month ago
0
python

link_checks

testing of link checking
Submitted by anonymous - a month ago
0
javascript

Email

Email
Submitted by anonymous - a month ago
0
python

russian phone number

That's work!
Submitted by anonymous - a month ago
0
python

Phone_number_test

Test
Submitted by anonymous - a month ago
0
python

Regexy uczelnia

Wyszukuje słowo Mikołaj
Submitted by anonymous - a month ago
0
javascript

Find Japanese

Find Japanese
Submitted by nghilq - a month ago
0
python

<> stuff

desc
Submitted by anonymous - 2 months ago
0
javascript

Only numbers and length 9

Only numbers and length 9
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 - 4 months ago