Regular Expressions 101

Library entries

0
javascript

IPv4-CIDR

Match IPv4-CIDR (JavaScript)
Submitted by fwqaaq - 2 days ago
0
python

Author cite

Get author names from shitty import
Submitted by anonymous - 8 days ago
0
python

Session Start/Close

Capturing Start/Close in IRC-logs
Submitted by Corpset - 15 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