Regular Expressions 101

Library entries

1
python

weighted average

no description available
Submitted by anonymous - 3 years ago
1
python

bot

no description available
Submitted by anonymous - 3 years ago
1
python

carryover_assimilation_plosives

no description available
Submitted by anonymous - 3 years ago
1
python

Bug in regexp match count

no description available
Submitted by anonymous - 3 years ago
1
python

ffmppeg

no description available
Submitted by anonymous - 3 years ago
1
python

Week Regex

Regex for MM/DD/YYYY week
Submitted by anonymous - 3 years ago
1
python

2- SEMANA3

no description available
Submitted by anonymous - 3 years ago
1
python

ali

no description available
Submitted by anonymous - 3 years ago
1
python

ali

no description available
Submitted by anonymous - 3 years ago
1
python

linkedin

no description available
Submitted by anonymous - 3 years ago
1
python

2line

no description available
Submitted by anonymous - 3 years ago
1
python

Redis output

no description available
Submitted by anonymous - 3 years ago

Skype/IRC log syntax highlighting

Vote

1

Regular Expression
python

r"
^\s* (?: (?P<date> (?:[\[<\(]\s*)? # opening bracket (?: # date time (?: # date (?: (?: # matches mm-dd-yyyy mm-dd-yy mm-dd \d{1,2}-\d{1,2} (?: - (?:\d{4}|\d{2}) )? ) | (?: # matches mm/dd/yyyy mm/dd/yy mm/dd \d{1,2}\/\d{1,2} (?: \/ (?:\d{4}|\d{2}) )? ) ) \s+ # time \d{1,2}:\d{2} (?::\d{2})? (?: \s* (?:AM|PM) )? ) | # time date (?: # time \d{1,2}:\d{2} (?::\d{2})? (?: \s* (?:AM|PM) )? \s+ # date (?: (?: # matches mm-dd-yyyy mm-dd-yy mm-dd \d{1,2}-\d{1,2} (?: - (?:\d{4}|\d{2}) )? ) | (?: # matches mm/dd/yyyy mm/dd/yy mm/dd \d{1,2}\/\d{1,2} (?: \/ (?:\d{4}|\d{2}) )? ) ) ) | # time only (?: \d{1,2}:\d{2} (?::\d{2})? (?: \s* (?:AM|PM) )? ) ) (?:\s*[\)>\]])? # closing bracket ) \s+ )? (?P<name> (?: (?:<\s*[^\s:>]+\s*>) # match <Username> | (?:[^\s:]+:) # match Username: ) ) \s+ (?P<message>.*) $
"
gxm

Description

Loading markdown...
Submitted by Sirenfal - 7 years ago