Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
((jan|feb|mar|apr|may|jun|july|aug|sep|sept|oct|nov|dec|January|february|march|april|may|june|august|september|october|november|december|\d{1,2})[ -\/',]\d{2,4})\s+([-]|till|to)\s+(?:((jan|feb|mar|apr|may|jun|july|aug|sep|sept|oct|nov|dec|January|february|march|april|may|june|august|september|october|november|december|\d{1,2})[ -\/',]\d{2,4})|present|date|now)
"
gmi

Description

ready code

Submitted by anonymous - 3 years ago