Regular Expressions 101

Sponsors

Library entries

0
python

Date extraction

no description available
Submitted by anonymous - 4 years ago
0
python

Some sql beauty

no description available
Submitted by anonymous - 4 years ago
0
python

Missing Ementas

Search for missing 'ementas'.
Submitted by anonymous - 4 years ago
0
golang

golang function signature

no description available
Submitted by anonymous - 4 years ago
0
python

latex equation search

recherche d'équation latex
Submitted by anonymous - 4 years ago
0
python

in line $ $ (latex equation)

no description available
Submitted by anonymous - 4 years ago
0
python

С НДС

no description available
Submitted by anonymous - 4 years ago
0
python

Без НДС

no description available
Submitted by anonymous - 4 years ago
0
python

С НДС Newline

no description available
Submitted by anonymous - 4 years ago
0
python

Chess

no description available
Submitted by anonymous - 4 years ago
0
python

Local path

C:/path \\?\C:[\/]path /path ~/path
Submitted by anonymous - 4 years ago
0
python

oqun.jjbkk.cn

no description available
Submitted by anonymous - 4 years ago
0
python

Parsing file metadata

no description available
Submitted by anonymous - 4 years ago
0
python

fix secacc in diva

no description available
Submitted by anonymous - 4 years ago

Skype/IRC log syntax highlighting

Vote

1

Regular Expression
python

"
^\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 - 6 years ago