Regular Expressions 101

Community Patterns

1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 7 hours ago
1

extract url

PCRE2 (PHP >=7.3)
extract url
Submitted by anonymous - 13 days ago

Dyno warning regex

0

Regular Expression
Python

r"
(?:(?P<Date>(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d{1,2}, \d+ \d{1,2}:\d{1,2} AM|PM) (?P<WarnID>(?:[0-9a-f]|-)*) (?P<User>[a-zA-Z]+#[0-9]{4}) (?:\((?P<UserID>[0-9]+)\)) (?P<Moderator>[a-zA-Z]+#[0-9]{4}) (?P<WarnReason>(?:\s|\S)+))
"
gm

Description

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