Regular Expressions 101

Community Patterns

Matching %d-%b date format

0

Regular Expression
Python

r"
\b(0?[1-9]|[12][0-9]|3[01])\b-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)
"
gmi

Description

Matching %d-%b date format with or without leading 0 in the day

Submitted by Justin Copeland - 2 years ago