Regular Expressions 101

Sponsors

Library entries

0
python

Find datetime directory

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

Last SEO RegExp

Last SEO RegExp
Submitted by Jay Patel - 7 years ago
0
python

Apache Log Format Parser

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

phone number

no description available
Submitted by Dries Werckx - 7 years ago
0
python

All Same Number

Check all the numbers are same in a string.
Submitted by DJA - 7 years ago
0
python

Inf_lab2

Regular expressions for lab2
Submitted by anonymous - a month ago
0
python

EC2 Instance Type

Validates ec2 instance types as of 10/19/22
Submitted by anonymous - a month ago
0
python

DD followed by Month in String

-
Submitted by anonymous - a month ago
0
java

grade pattern

grade pattern for chinese school grade
Submitted by anonymous - a month ago
0
java

Mt940-61

Parse tag 61 of an mt940 statement
Submitted by anonymous - a month ago
0
python

Find ID

a
Submitted by Shaqalito - a month ago
0
python

Parse AWS RDS Releases

Parse AWS RDS Releases
Submitted by anonymous - a month 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