Regular Expressions 101

Community Library Entry

0

Regular Expression
Python

r"
[a-zA-Z]+\s\s\d|(2[0-3]|[01]?[0-9]):([0-5]?[0-9]):([0-5]?[0-9])|([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})|(2[0-3]|[01]?[0-9]):([0-5]?[0-9]):([0-5]?[0-9])|0[1-9]|[12][0-9]|3[01][-/.](0[1-9]|1[012])[-/.](19|20)|W(Deny)|(Permit)|(Global)|(Trust)|(Untrust)
"
gm

Description

For internship purposes

Submitted by Adanna - 2 years ago