Regular Expressions 101

Community Patterns

1

Extract tag name and its content

Python
Lrc file
Submitted by Cricar - 4 months ago
1

Match each tag

Python
Match each tag in a lrc file
Submitted by Cricar - 4 months 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