Regular Expressions 101

Community Patterns

5

ipv6

PCRE (PHP <7.3)
Match an ipv6 address
Submitted by Frusty - 7 years ago
9

only numbers

PCRE (PHP <7.3)
A string with only numbers in
Submitted by Gotts - 8 years ago

auto-gpt- parse system cmd

0

Regular Expression
Python

r"
(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}),(\d{3})\sINFO\sSYSTEM:\s+Command\s+(\w+)\s+returned:\s+(.*?)(?=\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}|\Z)
"
gms

Description

Loading markdown...
Submitted by anonymous - 5 months ago