Regular Expressions 101

Library entries

0
pcre2

exclude square brackets

exclude square brackets
Submitted by tarek - 18 hours ago
0
pcre

strip host port

removes port number from URL
Submitted by pc - 3 days ago
0
java

Martch Letras y Parentesis

Martch Letras y Parentesis
Submitted by Daniel Gonzalez - 3 days ago
0
pcre2

YouTube link parser

Validate an URI to YouTube video.
Submitted by anonymous - 3 days ago

Linux Uptime (match all possible cases with days, min and hours)

Vote

0

Regular Expression
javascript

/
^\s*\S+\s+up\s+(?<uptime>(?:\S+\s+days,\s+\d+:\d+|\S+\s+min)|\d+:\d+)
/
gm

Description

Loading markdown...
Submitted by Feruz Ibadullaev - 2 months ago